- Home /
Question by
Andrey-Postelzhuk · Jan 30, 2014 at 12:45 PM ·
bugjsonnulllitjson
LitJson null bug
If json object has a null-property I'll get a NullReferenceException. Example:
string jsonStr = "{'body':null}";
LitJson.JsonData jsonData = LitJson.JsonMapper.ToObject(jsonStr);
jsonStr = LitJson.JsonMapper.ToJson(jsonData); //exception here
Did anyone handle this problem?
Comment
I've created an issue. $$anonymous$$aybe it'll be helpful for someone. https://github.com/lbv/litjson/issues/18
Your answer
Follow this Question
Related Questions
How to implement LitJSON? 2 Answers
Null reference exception 1 Answer
How to read an int array using LitJson? 1 Answer
Loading JSON in Unity 3d 1 Answer
SplatMap error 1 Answer