Hey guys, I’m relatively new to Unity3d and C#. We are implementing a leaderboard in our game and will need to make some remote server api calls. The returned data will be in JSON. From what I’ve read so far I see SimpleJSON, LitJSON and I see in the asset store a free plugin JSONObject.
At this point the returned data is not complex at all. Pretty much an array of dictionaries. What methods do you all suggest using to parse the json object?
Thanks in advance
If you’re looking at doing generic collections, dictionaries, collections of collections, complex objects, etc then you might take a look at my JSON .NET port. It’s not free but it’s pretty reasonable and it works cross platform (iOS, PC/Mac/Linux, Android, WP8, Windows Store Apps, Web Player). If you’re absolutely wanting to use something free and if you just need to decode simple JSON then I would take a look at JSONObject in the asset store (the one you listed above). I don’t know anything about SimpleJSON but I know LitJSON for sure has some problems on iOS. I believe JSONObject works fine on iOS and from what I’ve heard it’s a good product.
Thanks Dustin for the response. I will look into JSONObject for starters. Where can I read up on your port? Asset store perhaps?
Yep, links are in my signature but here you go:
JSON .NET for Unity on the Asset Store
And here’s the Release Thread here in the forum