UnityLitJson
UnityLitJson copied to clipboard
JSON library for Unity3D
I tried to parse a JSON in the Unity editor on Mac OS X, and it seems that the current CultureInfo is using a different decimal separator on my system....
string jsonStr = "{'body':null}"; LitJson.JsonData jsonData = LitJson.JsonMapper.ToObject(jsonStr); jsonStr = LitJson.JsonMapper.ToJson(jsonData); //exception here
By default Unity serializes public fields, as does LitJson. However the rules are a little more complicated. It should be possible to configure LitJson to directly mimic the serialization behaviour...
Allow float and double special cases to be converted to and from json correctly, including positive and negative infinity and NaN.
Had to dive in to the source to figure out why my type-hinted JSON wasn't deserializing properly. In retrospective it makes sense that you'd need to tell LitJson to deserialize...
Original bug: #10
Currently numeric strings are parsed in an awkward multi-stage fashion by JsonReader -- if there's a decimal point it tries to parse as double, if not then it tries int,...
Currently JsonMapper.RegisterExporter only registers an exporter for a specific type T. Additional type S derived from T will not use the registered exporter. An "bool inherit" flag passed to RegisterExporter...
_Should we make this package tightly coupled to and dependent on Unity, or make Unity integration an optional module?_ Is our top priority to make this _the_ Json package for...
Make sure the unit test suite includes common and edge cases to exercise the full range of all numeric types, and that numbers can be converted to json and back...