Title: [Plugin: JSON API] Displaying JSON Custom Fields
Last modified: August 20, 2016

---

# [Plugin: JSON API] Displaying JSON Custom Fields

 *  [smartdept](https://wordpress.org/support/users/smartdept/)
 * (@smartdept)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-json-api-displaying-json-custom-fields/)
 * Hi there,
 * I’m using Sencha Architect and I’m trying to get the custom field values from
   this JSON response created with the WordPress JSON API: [http://theojai.net/?json=get_recent_…pcf-deal-rules](http://theojai.net/?json=get_recent_…pcf-deal-rules)
 * I’ve created a model, but I’m just not sure what to type in the “Mapping” fields
   for each of those custom_fields in the JSON response. Any thoughts?
 * Here is my Sencha model. What do I put in the mapping areas for the last three?:
 *     ```
       Ext.define('Ojai.model.Deal', {
       extend: 'Ext.data.Model',
   
       config: {
           fields: [
               {
                   name: 'Title',
                   mapping: 'title'
               },
               {
                   name: 'Business',
                   mapping: 'custom_fields.wpcf-deal-business-owner'
               },
               {
                   name: 'Expiry',
                   mapping: 'wpcf-deal-expiry'
               },
               {
                   name: 'Terms',
                   mapping: 'wpcf-deal-rules'
               }
           ]
       }
       });
       ```
   
 * [http://wordpress.org/extend/plugins/json-api/](http://wordpress.org/extend/plugins/json-api/)

Viewing 1 replies (of 1 total)

 *  [WhiteAce](https://wordpress.org/support/users/whiteace/)
 * (@whiteace)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/plugin-json-api-displaying-json-custom-fields/#post-3059616)
 * Need this feature also, hope it can be done. [RESOLVED]
    **Never mind **– I’ve
   just found out that it is also in the JSON data – I Use “Types” to control over
   the custom fields – so the JSON Display: “wpcf-FIELD_NAME”:[“FIELD_DATA”]. thanks,
   love this plugin 🙂

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: JSON API] Displaying JSON Custom Fields’ 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/)

## Tags

 * [custom fields](https://wordpress.org/support/topic-tag/custom-fields/)
 * [json](https://wordpress.org/support/topic-tag/json/)

 * 1 reply
 * 2 participants
 * Last reply from: [WhiteAce](https://wordpress.org/support/users/whiteace/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/plugin-json-api-displaying-json-custom-fields/#post-3059616)
 * Status: not resolved