# Help Iterating through json content

**URL:** <https://discuss.jsonapi.org/t/help-iterating-through-json-content/1400>\
**Category:** Uncategorized\
**Created:** [October 14, 2018, 4:49am UTC](https://discuss.jsonapi.org/t/help-iterating-through-json-content/1400 "2018-10-14T04:49:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![do\_trying](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@do\_trying](https://discuss.jsonapi.org/u/do_trying)\
**Post date:** [October 14, 2018, 4:49am UTC](https://discuss.jsonapi.org/t/help-iterating-through-json-content/1400/1 "2018-10-14T04:49:15Z")

</div>

Hi,

I need help on how to iterate through the following Json content…

Any idea ?

{  
“clone\_url”: “xxx”,  
“completed\_at”: null,  
“created\_at”: “2018-10-14T00:29:40-04:00”,  
“currency”: “CAD”,  
“presentment\_currency”: “CAD”,  
“customer\_id”: 5419034953,  
“customer\_locale”: “en”,  
“device\_id”: null,  
“discount\_code”: null,  
“email”: “xxx”,  
“legal\_notice\_url”: null,  
“location\_id”: null,  
“name”: “#5321080537185”,  
“note”: “”,  
“note\_attributes”: {},  
“order\_id”: null,  
“order\_status\_url”: null,  
“order”: null,  
“payment\_due”: “1325.00”,  
“payment\_url”: “xxx”,  
“payments”: [],  
“phone”: null,  
“shopify\_payments\_account\_id”: null,  
“privacy\_policy\_url”: null,  
“refund\_policy\_url”: null,  
“requires\_shipping”: “false”,  
“reservation\_time\_left”: 0,  
“reservation\_time”: null,  
“source\_identifier”: null,  
“source\_name”: “1743513”,  
“source\_url”: null,  
“subtotal\_price”: “1325.00”,  
“shipping\_policy\_url”: null,  
“tax\_exempt”: “false”,  
“taxes\_included”: “false”,  
“terms\_of\_sale\_url”: null,  
“terms\_of\_service\_url”: null,  
“token”: “07420756b587835b783e7ed84ef2385d”,  
“total\_price”: “1325.00”,  
“total\_tax”: “0.00”,  
“total\_line\_items\_price”: “1325.00”,  
“updated\_at”: “2018-10-14T00:29:40-04:00”,  
“user\_id”: null,  
“web\_url”: “xxx”,  
“total\_tip\_received”: “0.00”,  
“line\_items”: [  
{  
“id”: “8b44de2ee7c082933434ec3e678c87dd”,  
“key”: “8b44de2ee7c082933434ec3e678c87dd”,  
“product\_id”: 9261099081,  
“variant\_id”: 34223636041,  
“sku”: “”,  
“vendor”: “xxx”,  
“title”: “xxx”,  
“variant\_title”: “xxx”,  
“image\_url”: “xxx.png”,  
“taxable”: “false”,  
“requires\_shipping”: “false”,  
“gift\_card”: “false”,  
“price”: “40.00”,  
“compare\_at\_price”: null,  
“line\_price”: “40.00”,  
“properties”: {},  
“quantity”: 1,  
“grams”: 0,  
“fulfillment\_service”: “manual”,  
“applied\_discounts”: []  
},  
{  
“id”: “64e144e2e5a2e2fd5880a192fd61dbda”,  
“key”: “64e144e2e5a2e2fd5880a192fd61dbda”,  
“product\_id”: 9255657801,  
“variant\_id”: 34194503817,  
“sku”: “”,  
“vendor”: “xxx”,  
“title”: “xxx”,  
“variant\_title”: “xxx”,  
“image\_url”: “xxx.png”,  
“taxable”: “true”,  
“requires\_shipping”: “false”,  
“gift\_card”: “false”,  
“price”: “545.00”,  
“compare\_at\_price”: null,  
“line\_price”: “545.00”,  
“properties”: {},  
“quantity”: 1,  
“grams”: 0,  
“fulfillment\_service”: “manual”,  
“applied\_discounts”: []  
}  
],  
“gift\_cards”: [],  
“tax\_lines”: [],  
“tax\_manipulations”: [],  
“shipping\_line”: null,  
“shipping\_rate”: null,  
“shipping\_address”: {  
“id”: 987604287585,  
“first\_name”: “Generated”,  
“last\_name”: “Checkout”,  
“phone”: “xxx”,  
“company”: null,  
“address1”: “xxx”,  
“address2”: null,  
“city”: “xxx”,  
“province”: “xxx”,  
“province\_code”: “xxx”,  
“country”: “xxx”,  
“country\_code”: “CA”,  
“zip”: “xxxxxx”  
},  
“credit\_card”: null,  
“billing\_address”: null,  
“applied\_discount”: null  
}

---

<div class="post-metadata">

**Author:** ![jelhan](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/jelhan/32/822_2.png) [@jelhan](https://discuss.jsonapi.org/u/jelhan)\
**Post date:** [November 5, 2018, 10:40pm UTC](https://discuss.jsonapi.org/t/help-iterating-through-json-content/1400/2 "2018-11-05T22:40:58Z")

</div>

This is not related to JSON API specification at all.
