Title: Formatting Using Sub Loops
Last modified: August 31, 2016

---

# Formatting Using Sub Loops

 *  Resolved [castlist](https://wordpress.org/support/users/castlist/)
 * (@castlist)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/formatting-using-sub-loops/)
 * I have a JSON feed that contains the data below and I’ve been trying to parse
   this into the correct shortcode. However I’m having huge problems getting it 
   to display correctly.
 * If anybody can help, I would be eternally grateful.
 * Thanks in advance.
 * —– BEGIN JSON DATA —–
    {“ok”:true,”updated”:{“epoch”:1460204889,”time”:”2016-
   04-09T12:28:09+00:00″,”cache”:false},”type”:”cities”,”result”:[{“info”:{“city”:{“
   name”:”Amsterdam”,”url”:”\/amsterdam-netherlands”,”slug”:”amsterdam-netherlands”},”
   country”:{“name”:”Netherlands”,”url”:”\/country\/netherlands”,”slug”:”netherlands”},”
   region”:{“name”:”Europe”,”url”:”\/region\/europe”,”slug”:”europe”},”internet”:{“
   speed”:{“download”:43}},”weather”:{“type”:”Scattered Showers”,”humidity”:{“label”:”
   Humid”,”value”:0.84},”temperature”:{“celsius”:12,”fahrenheit”:53}},”location”:{“
   latitude”:52.3702157,”longitude”:4.8951679},”monthsToVisit”:[6,7,8,9]},”people”:{“
   checkins”:148},”scores”:{“nomadScore”:0.74,”nomad_score”:0.74,”life_score”:0.89,”
   free_wifi_available”:0.8,”nightlife”:1,”leisure”:0.8,”places_to_work”:0.8,”aircon”:
   0.4,”safety”:0.8,”friendly_to_foreigners”:1,”racism”:0.8,”lgbt_friendly”:1,”female_friendly”:
   0.8},”media”:{“image”:{“250″:”\/assets\/img\/cities\/amsterdam-netherlands-250px.
   jpg”,”500″:”\/assets\/img\/cities\/amsterdam-netherlands-500px.jpg”,”1000″:”\/
   assets\/img\/cities\/amsterdam-netherlands-1000px.jpg”,”1500″:”\/assets\/img\/
   cities\/amsterdam-netherlands-1500px.jpg”}},”cost”:{“local”:{“USD”:2117,”EUR”:
   1857},”nomad”:{“USD”:3820,”EUR”:3351},”expat”:{“USD”:3647,”EUR”:3199},”longTerm”:{“
   USD”:3647,”EUR”:3199},”shortTerm”:{“USD”:3820,”EUR”:3351},”hotel”:{“EUR”:94,”
   USD”:107},”airbnb_median”:{“USD”:102,”EUR”:102},”airbnb_vs_apartment_price_ratio”:
   1.70176218,”non_alcoholic_drink_in_cafe”:{“EUR”:2.5,”USD”:2.85},”beer_in_cafe”:{“
   EUR”:5,”USD”:5.7},”coffee_in_cafe”:{“EUR”:3.5,”USD”:3.99},”coworking”:{“monthly”:{“
   EUR”:427,”USD”:486.78}},”exchange_rate”:{“USD”:1.1399947788239}}}],”endpoint_examples”:[“\/
   api\/v2\/list\/cities”,”\/api\/v2\/list\/cities\/amsterdam-netherlands”,”\/api\/
   v2\/list\/countries”,”\/api\/v2\/list\/countries\/netherlands”,”\/api\/v2\/list\/
   regions”,”\/api\/v2\/list\/regions\/europe”,”\/api\/v2\/list\/cities\/amsterdam-
   netherlands\/places\/work”,”\/api\/v2\/list\/cities\/amsterdam-netherlands\/places\/
   sleep”]} —– END JSON DATA —–
 * [https://wordpress.org/plugins/json-content-importer/](https://wordpress.org/plugins/json-content-importer/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/formatting-using-sub-loops/#post-7256177)
 * Hi castlist
 * see
    [http://json-content-importer.com/examples/jci-parser-castlist-json-example/](http://json-content-importer.com/examples/jci-parser-castlist-json-example/)
   and [http://json-content-importer.com/examples/twig-template-engine-castlist-json-example/](http://json-content-importer.com/examples/twig-template-engine-castlist-json-example/)
 * Bernhard

Viewing 1 replies (of 1 total)

The topic ‘Formatting Using Sub Loops’ 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: [10 years, 1 month ago](https://wordpress.org/support/topic/formatting-using-sub-loops/#post-7256177)
 * Status: resolved