walterf25 Expert Licensed User Longtime User May 7, 2013 #1 Hello all, this is the first time i use this library, i've always used xml, i need to parse this string received from a server, can anyone here please help me I've followed Erel's tutorial but i can't seem to split the two values i need to retrieve. {"result":[{"value":1,"i_user_id":3}]} Click to expand... I need to retrieve the "value" string along with the "i_user_id" i'm sure is something simple but i can't figure it out, i can get the whole string but i need to split it into it's different values. Thanks for the help! Walter
Hello all, this is the first time i use this library, i've always used xml, i need to parse this string received from a server, can anyone here please help me I've followed Erel's tutorial but i can't seem to split the two values i need to retrieve. {"result":[{"value":1,"i_user_id":3}]} Click to expand... I need to retrieve the "value" string along with the "i_user_id" i'm sure is something simple but i can't figure it out, i can get the whole string but i need to split it into it's different values. Thanks for the help! Walter
Erel B4X founder Staff member Licensed User Longtime User May 8, 2013 #2 Something like: Code: Dim m As Map = JsonParser.NextObject Dim l1 As List = m.Get("result") Dim m2 As Map = l1.Get(0) Log("value = " & m2.Get("value")) Upvote 0
Something like: Code: Dim m As Map = JsonParser.NextObject Dim l1 As List = m.Get("result") Dim m2 As Map = l1.Get(0) Log("value = " & m2.Get("value"))
walterf25 Expert Licensed User Longtime User May 8, 2013 #3 JSON parsin wow, so simple and yet i was breaking my head, thank you Erel you're the man! Upvote 0