Title: [Plugin: JSON API] Set custom post format and
Last modified: August 20, 2016

---

# [Plugin: JSON API] Set custom post format and

 *  [Andrea](https://wordpress.org/support/users/agianfreda/)
 * (@agianfreda)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-json-api-set-custom-post-format-and/)
 * Hi,
 * i would like to know how i could set internally (and not with parameters) in 
   a customized controller the “custom fields” list that i want to show in JSON 
   output.
    For the post format, i used – instead of passing it via parameter “&
   include=comments,title,…” – this code:
 * global $json_api;
    $json_api->response->include_values = $this->include_values_categories;
 * Is that the right way?
    How could I do the same for “&custom_fields=…” parameter?
 * Thanks a lot, wonderful plugin!
    Andrea
 * [http://wordpress.org/extend/plugins/json-api/](http://wordpress.org/extend/plugins/json-api/)

The topic ‘[Plugin: JSON API] Set custom post format and’ 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [Andrea](https://wordpress.org/support/users/agianfreda/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-json-api-set-custom-post-format-and/)
 * Status: not resolved