Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

anybody know a tutorial or maybe can help me to develop a parser/reader for JSON compatible with Unity iOS pro? I've already tried different third part libraries but without luck (i've tried, jsonfx, litjson).

Im pretty in hurry of doing a simple parser/writer that i can use also under iOS and not only in Desktop.

P.s. i can also use third part library, but please, first of suggest be sure that it will work under iOS! Thank you all

share|improve this question

closed as off-topic by Anko, congusbongus, Seth Battin, Josh Petrie Jul 10 '15 at 16:04

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions about "how to get started," "what to learn next," or "which technology to use" are discussion-oriented questions which involve answers that are either based on opinion, or which are all equally valid. Those kinds of questions are outside the scope of this site. Visit our help center for more information." – Anko, congusbongus, Seth Battin, Josh Petrie
If this question can be reworded to fit the rules in the help center, please edit the question.

I'd personally recommend SimpleJson from The Outercurve Foundation (link below), Works very well on withe portable platform I'm working on (playstation mobile) which like unity is c# :)

share|improve this answer
(this is not from prior iOS experience but theoretically there shouldn't be any conflicts) – Matt Nov 29 '12 at 14:54

We have spent quite a lot of time in :

searching -> testing -> trying to modifying the json pluggin -> trying to modifying our code to fit this json plugging -> fail again -> searching a new json.

And at last, we have to came back to the easiest json like DannoEterno said, the MiniJSON. Although this one has the least functions.

We have tried : LitJson, a strong pluggin, can be used in iOS, support object mapper, but it can't use a integer as key for dictionaries, which is very important for our game

Newton Json, like litJson, support object mapper too. it works well when serialisation in ios, but failed in deserialization.

MiniJSON, simplest pluggin, doesn't support object mapper. You have to do quite a lot of work to organize your data structures, write your own serialization and deserialization for every object you want to save. It is a lot of physics work.

We have even tried :

MsgPacker, a great pluggin, if you want save something in using object mapper, try this first, it can be used in ios. Due to some issue caused by networking, we have to give up this pluggin. There is a someone who write a MsgPacker special for unity3d. The official one cannot be used in unity3d. Try to google it by MsgPacker unity3d.

In my opinion, avoid using object mapper. Because it depends on reflection in c#, which means you cannot use micro mscorlib for your app. WTF!

Best wishes. my friends!

share|improve this answer
up vote 1 down vote accepted

I've tested a lot and finally i've found this:

It'is not the best, but is iOS friendly and fit pretty well for now.

Matt i dont have test the library that you suggest me, but when i will find some free time i will test and let you know :)

If someone find some other library (a porting of would be beutiful) please post :)

share|improve this answer

Danno -

Here's a Unity port of JSON .NET: Unity JSON .NET Works for JSON, BSON and it works in IOS

share|improve this answer

Reference unity asset : Easy JSON Hashtable

This package is very easy and can be easily converted JSON.

JSON string can be easily converted into Hashtable.

Hashtable that also can be easily converted into a JSON string.

share|improve this answer

We're using JSONObject from the Unify wiki. Not sure how this compares to other options people have brought up.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.