Title: [Plugin: JSON API] Adding extra things, i.e. &quot;post_format,&quot; to the JSON output
Last modified: August 21, 2016

---

# [Plugin: JSON API] Adding extra things, i.e. "post_format," to the JSON output

 *  Resolved [johngorenfeld](https://wordpress.org/support/users/johngorenfeld/)
 * (@johngorenfeld)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/plugin-json-api/)
 * How would I modify the great JSON API plugin to provide just one more piece of
   information about the post: specifically the post-3.1 feature of post_format,
   as in “Video,” “Link,” “Quote”?
 * Having used the older version of the plugin, I am disoriented and confused by
   the new one’s object-oriented references to a Controller. Is that something that’s
   easy to extend with a WP hook? Could someone provide an example of a hook function
   that would add in this additional bit of post information? Any help much appreciated.
 * John
 * [http://wordpress.org/plugins/json-api/](http://wordpress.org/plugins/json-api/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [johngorenfeld](https://wordpress.org/support/users/johngorenfeld/)
 * (@johngorenfeld)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/plugin-json-api/#post-4266031)
 * Hi everyone, I figured out the answer and am posting it here for future developers.
 * From the manual, I had a hard time figuring out whether any of the hooks would
   be suitable for my goal, which was to get extra post information about post_format.
   So I ended up adding lines to the actual Post model: models/post.php.
 * Is there a filter or hook that would do this? Maybe by extending the Post object?

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: JSON API] Adding extra things, i.e. "post_format," to the JSON
output’ 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
 * 1 participant
 * Last reply from: [johngorenfeld](https://wordpress.org/support/users/johngorenfeld/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/plugin-json-api/#post-4266031)
 * Status: resolved