hello
I have this json. I want to loop thru each element and get its id like in below it has 4 elements and i want to get its id like
"id":"RYGSP956RVYV0"
"id":"PESX3A9G700C8"
"id":"9NHJ7C9PM89CA"
"id":"PAJEG85GXERDJ"
200 OK
Metadata
{
"elements":[
0:{
"id":"RYGSP956RVYV0"
"orderRef":{...}
"name":"Shrimp Alfredo Egg Roll Meal Drink: Fanta Strawberry + 0.00 USD Side: Salt & Vinegar chips + 0.00 US..."
"price":1050
"unitQty":1000
"printed":false
"createdTime":1604159345000
"orderClientCreatedTime":1604159344000
"exchanged":false
"refunded":false
"isRevenue":true
}
1:{
"id":"V6TCNCTH4PRYW"
"orderRef":{...}
"name":"White Chocolate Macadamia Nut Cookie"
"price":250
"unitQty":1000
"printed":false
"createdTime":1604159345000
"orderClientCreatedTime":1604159344000
"exchanged":false
"refunded":false
"isRevenue":true
}
2:{
"id":"PESX3A9G700C8"
"orderRef":{...}
"name":"V Brats and Cabbage Egg Roll Meal Drink: Fanta Strawberry + 0.00 USD Side: Jalapeno chips + 0.00 USD"
"price":975
"unitQty":1000
"printed":false
"createdTime":1604159345000
"orderClientCreatedTime":1604159344000
"exchanged":false
"refunded":false
"isRevenue":true
}
3:{
"id":"9NHJ7C9PM89CA"
"orderRef":{...}
"name":"Buffalo Chicken Egg Roll Meal Drink: Fanta Strawberry + 0.00 USD Side: Sweet potato fries + 0.50 USD"
"price":1025
"unitQty":1000
"printed":false
"createdTime":1604159345000
"orderClientCreatedTime":1604159344000
"exchanged":false
"refunded":false
"isRevenue":true
}
4:{
"id":"PAJEG85GXERDJ"
"orderRef":{...}
"name":"Philly Cheesesteak Egg Roll Meal Drink: Diet Coke + 0.00 USD Side: Classic chips + 0.00 USD"
"price":975
"unitQty":1000
"printed":false
"createdTime":1604159345000
"orderClientCreatedTime":1604159344000
"exchanged":false
"refunded":false
"isRevenue":true
}
]
"href":"http://sandbox.dev.clover.com/v3/merchants/Q4EXDMG9G0FC1/orders/8PN7T75FGJ93R/line_items?limit=100"
}