dotBunny / Hydrogen

Hydrogen Framework for Unity
http://hydrogen.dotbunny.com
33 stars 5 forks source link

Json parser how to #4

Open badoet opened 10 years ago

badoet commented 10 years ago

hey, i stumbled upon hydrogen when i was looking for a gd json parser for unity3d looking through the source code i can see that it support parsing to long long is often skipped by most of the json library out there. so im glad i finally found it here.

problem is, i kind find any documentation on how to use this library. how to parse the json string to JSONObject and retrieve the property from it? like JSONObject obj long bigNumber = obj["propertyname"];

EDIT I have figured out on how to convert json string to JSONObject. and i have added my own ToLong function in JSONObject

my next problem is how to convert json array into list of JSONObject. thx

reapazor commented 9 years ago

Hey!

My apologies for not getting to this sooner, the JSON part is very limited in scope ... in the sense it really doesn't handle array of arrays very well inside of a json payload. I've had to create very specific cases to handle it, or I use a more flushed out JSON library.

This really was meant for quick, simple JSON (unfortunately).