Quantcast
Viewing all articles
Browse latest Browse all 108

Json Parser

Im currently using the Boomlagoon JSON parser, but can't seem to retrieve object values: string text = "{ \"sample\" : { \"sam\" : 23 } }"; ## string to parse JSONObject json = JSONObject.Parse(text); ## parsed double number = json.GetNumber("sam"); ## Here i'm trying to jump into the sample object and retrieve the double value of sam which is 23. Debug.Log(number); Essentially I don't know how to jump into the sample object and retrieve the value associated with sam. Any quick help is much appreciated.

Viewing all articles
Browse latest Browse all 108

Trending Articles