How to grab JSON array element

Lets say I wanted to grab the first element in the “HIstory” element. How would I do so?

Full XML code:
https://pittohio.com/WebServices/RestServices/api/ShipmentTracingETA/Get?pronumber=5032213299&all=yes&irv=134302&eta=yes&format=json

Kindly note it is JSON returned from the call

grafik
output: myJObject

1 Like

Awesome! Is it possible to grab all the elements and place them into an array?

yes,

kindly note it is an array of JObjects. Give me a little time and will prepare some starter helps

1 Like

Managed to get it, thanks for the help :slight_smile:

Perfect

Here a sample to get it as DataTable:
grafik

Can I ask one more?

Inside the JSON file:

Capture

How can I retrieve the string “Delivered”

I tried:
myJObject(“prostatus”)(“currentstatus”).toString
With no luck.

grafik
prostatus is an array, so we use the index

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.