- Home /
Is there a reason not to use system.json.dll?
I have seen a lot of folks coming up with their own solutions for json, but there's a Mono dll included with Unity3D for Json. I was just curious if there is a specific reason it is not used. I noticed that it is not available without copying the dll into the plugins directory.
I wanted to save myself some heartache, if it is not compatible with iOS/Android or some other horrible reason. :)
I found the file here...
C:\Program Files (x86)\Unity\Editor\Data\Mono\lib\mono\unity\System.Json.dll
Answer by Bunny83 · Jul 19, 2013 at 01:33 AM
Well, i had a look at the library and i think the main reason that people don't use it is:
they simply don't know it's there :D
Well a lot people don't trust third-party implementations since they don't know the limits / bugs of the implementation. That's why companies often has their own libraries they can trust. Also for example the System.Xml.dll it huge that's why most use a custom implementation, not as feature rich but way more light-weight. Same might be true for json implementations.
Answer by waldezjr · Jul 22, 2015 at 10:22 PM
I had the exact same question, and I found some threads stating that it would be more inneficent to serialize data. Moreover, it is not as easy to use as some other libraries such as json.net
At the end of the day I found this blog post with some benchmarks about the issue stating that JSON.net is indeed a lot faster to serialize data than system.json.
http://windward.net/blogs/json-net-really-best-json-serializer-net/#.VbAH4PnF-Sp
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Json.net - windows store phone 8.1 2 Answers
Distribute terrain in zones 3 Answers
How do I ; from inside another script, read an image resource inside a DLL 1 Answer
Nested variables in a JSON object 0 Answers