I have the following JSON coming in:
{
"response": {
"loop": [
{
"loop_id": "22719676",
"main_type": "shipment",
"main_id": "366211",
"amount": {
"currency": "usd",
"amount": 9.99
},
"zone": null,
"type": null,
"days": 1
},
"loop" iterates here....
]
)
I used jsonreturn1.LoadNodes(returnQueue,'loop') and it loaded the queue with all the iterations of "loop", plus some extra.
I tried to use jsonreturn1.LoadNodes(chargesQueue,'amount',chargesQueue.main_id,'main_id') without much luck. I'm a few days into this now so I have tried many other things.
How do I load such JSON as above, and I guess the bigger question I have it how does JFiles loop through the JSON so I can load any way I need to load?