Title: Feature request: filter hook for after json encode
Last modified: August 21, 2016

---

# Feature request: filter hook for after json encode

 *  [Austen Blokker](https://wordpress.org/support/users/eablokker/)
 * (@eablokker)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/feature-request-filter-hook-for-after-json-encode/)
 * I’m using the JSON API with WP Super Cache. Super Cache needs the generated file
   to end with ‘</html>’ in order to recognize the end of the file and cache the
   page. I modified the JSON API plugin to add ‘//</HTML>’ to the end of the JSON
   string, and then used a filter on WP Super Cache to remove the ‘//</HTML>’ after
   caching so the JSON string remains unmodified. It works great, my JSON data loads
   super fast now!
 * I’d prefer if I could use a filter to modify the JSON string rather than hacking
   the plugin, so my changes don’t get overwritten on plugin updates. Thanks for
   an awesome plugin.
 * [http://wordpress.org/plugins/json-api/](http://wordpress.org/plugins/json-api/)

Viewing 1 replies (of 1 total)

 *  [Bob Gregor](https://wordpress.org/support/users/bobbravo2/)
 * (@bobbravo2)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/feature-request-filter-hook-for-after-json-encode/#post-4098273)
 * Do you know if WP Super Cache uses the object caching API? If it supports wp_cache_set&
   wp_cache_get, then we can make JSON API support super cache & all the other caching
   plugins.

Viewing 1 replies (of 1 total)

The topic ‘Feature request: filter hook for after json encode’ is closed to new 
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/json-api.svg)
 * [JSON API](https://wordpress.org/plugins/json-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-api/)
 * [Active Topics](https://wordpress.org/support/plugin/json-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-api/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Bob Gregor](https://wordpress.org/support/users/bobbravo2/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/feature-request-filter-hook-for-after-json-encode/#post-4098273)
 * Status: not resolved