Title: Need Help Accessing Array Value
Last modified: December 10, 2021

---

# Need Help Accessing Array Value

 *  Resolved [teemberland](https://wordpress.org/support/users/teemberland/)
 * (@teemberland)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/need-help-accessing-array-value/)
 * Hi this is my JSON
 *     ```
       { 
         "october": {
           "perfect_stats": {
             "grounder": [
               {
                 "tot_pp": "6,422,975",
                 "pct_all_pp": "16.1%"
               }
             ]
           }
         }
       }
       ```
   
 * How can I get tot_pp and pct_all_pp? I’m using ‘october’ as basenode. I’ve tried…
 * `{subloop:perfect_stats:-1}{subloop-array:grounder:-1}{grounder.tot_pp}{/subloop-
   array:grounder}{/subloop:perfect_stats}`
 * But it’s not working. Maybe it’s not possible?
 * EDIT:
 * I think I figured it out. I updated the basenode value to october.perfect_stats
   and did this:
 * `{subloop-array:grounder:-1}{grounder.tot_pp}{/subloop-array:grounder}`
    -  This topic was modified 4 years, 6 months ago by [teemberland](https://wordpress.org/support/users/teemberland/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/need-help-accessing-array-value/#post-15154075)
 * Hi,
 * try
 *     ```
       [jsoncontentimporter url=http://wptest.kux.de/extra/json/october.json basenode=october]
       {subloop:perfect_stats:-1}
       {subloop-array:perfect_stats.grounder:-1}
       tot_pp: {perfect_stats.grounder.tot_pp}
       {/subloop-array:perfect_stats.grounder}
       {/subloop:perfect_stats}
       [/jsoncontentimporter]
       ```
   
 * Bernhard

Viewing 1 replies (of 1 total)

The topic ‘Need Help Accessing Array Value’ is closed to new replies.

 * ![](https://ps.w.org/json-content-importer/assets/icon-256x256.png?rev=3464653)
 * [Get Use APIs - JSON Content Importer](https://wordpress.org/plugins/json-content-importer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-content-importer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-content-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/json-content-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-content-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-content-importer/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [berkux](https://wordpress.org/support/users/berkux/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/need-help-accessing-array-value/#post-15154075)
 * Status: resolved