How to access particular value from my collection using key through JSON ?

0 votes
asked Feb 6, 2015 in App42 Cloud API-BaaS by florencedev123 (10 points)

1 Answer

0 votes

Hello Floren,

For this you can simple parse your json string into object & retrieve name value from it. For example: Your json string is this  {"name" : "Himanshu" , "Company" : "ShepHertz" } and you can parse this json string by following the below code which is for Unity:
 
string jsonDocument= storage.GetJsonDocList()[0].GetJsonDoc();

JObject userJSON = JObject.Parse(jsonDocument);

string userName = userJSON ["name"];
 
Let me know if it helps.
 
Thanks,
Himanshu Sharma
answered Feb 7, 2015 by hs00105 (2,005 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...