How can i get the 1st value in JSON object?

I have this process.


How can i loop through the JSON object to get the ‘key’ in the object,

E.G.
JsonObject = {“600”:1,
“610”:2 }
i want to print the “600” and “610”

Hello,

you can use split(item.tostring,":"c)(0)

Hello @Rowley101
You can use Regex

System.Text.RegularExpressions.Regex.Match(Item.tostring.trim,"(?<=\W)\d+(?=\W)").tostring

image

Hi @Rowley101 ,

We can get the Key and Values of each item in the Json Object by retrieving the Properties of the Json Object.
image

For your Case, You can use JsonObject.Properties in the In part of For Each Activity to get access to the Name and Value of each item in the Json Object.

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