Help Iterating through json content


#1

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
}


#2

This is not related to JSON API specification at all.