Json Extract one specific element

Hi,
When using a JSON deserialized string, I’d like to access directly one specific element value.
For instance, if JSON is the following:
{
“product”: “Live JSON generator”,
“id”: 31,
“releaseDate”: “2014-06-25T00:00:00.000Z”,
“demo”: true
}

I know we could use the ForEach Loop as explain in the HowTo… but how to access directly one item when we know the structure ?
I tried with SelectToken(“id”) but nothing is working so far…

Hey @rguich

on your parse json object fire parsed_json_data.GetValue(“id”).ToString.

in above thread reference you will find in sample attachment a way to get specific element. Check it out.

Regards…!!
Aksh

1 Like

Hi @aksh1yadav,
It works for me to extract specific element from json object.

Thanks
Mahesh-G

Hi
Pls follow below tutorial