Title: JSON Data
Last modified: July 18, 2021

---

# JSON Data

 *  Resolved [gafco](https://wordpress.org/support/users/gafco/)
 * (@gafco)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/json-data-3/)
 * Hi,
    Im trying to get to the “third level” for data but am having trouble. Im
   trying to get the weatherDesc value
 *     ```
       {
           "data": {
               "request": [
                   {
                       "type": "LatLon",
                       "query": "Lat 36.69 and Lon -75.92"
                   }
               ],
               "current_condition": [
                   {
                       "observation_time": "12:37 AM",
                       "temp_C": "27",
                       "temp_F": "80",
                       "weatherCode": "116",
   
                       "weatherDesc": [
                           {
                               "value": "Partly cloudy"
                           }
                       ],
                       "windspeedMiles": "4",
                       "windspeedKmph": "6",
       ```
   
 *  }
    ]
 * I have tried:
    {subloop:data:-1} {subloop:current_condition:-1} <p>Condition:{
   weatherDesc.value}{/subloop:current_condition} {/subloop:data:-1}
 * and
    {subloop:weatherDesc:-1} <p>1Condition: {weatherDesc.value}{/subloop:weatherDesc}
 * with the Basenode set to data.current_condition
 * Thanks
    Greg

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [gafco](https://wordpress.org/support/users/gafco/)
 * (@gafco)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/json-data-3/#post-14677599)
 * I also tried this:
    {subloop:current_condition:-1} {subloop:current_condition.
   weatherDesc:-1} <p>Condition: {current_condition.weatherDesc.value}{/subloop:
   current_condition.weatherDesc} {/subloop:current_condition}
 * no luck
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/json-data-3/#post-14681808)
 * Hi,
 * try this:
 *     ```
       [jsoncontentimporter url=http://api.json-content-importer.com/extra/json/gafco1.json basenode=data.current_condition]
       observation_time: {observation_time}<br>
       {subloop-array:weatherDesc:-1}
       {weatherDesc.value}<br>
       {/subloop-array:weatherDesc}
       [/jsoncontentimporter]
       ```
   
 * Bernhard
 *  Thread Starter [gafco](https://wordpress.org/support/users/gafco/)
 * (@gafco)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/json-data-3/#post-14685327)
 * Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘JSON Data’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [gafco](https://wordpress.org/support/users/gafco/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/json-data-3/#post-14685327)
 * Status: resolved