Exception:
Newtonsoft.Json.JsonSerializationException: Error getting value from 'XXX' on 'xxxxxx'. ---> System.NullReferenceException: Object reference not set to an instance of an object.
but it works in editor mode
here is my code:
Dictionary<string, object> sendMsgDic = new Dictionary<string, object>();
.......
sendMsg = JsonConvert.SerializeObject(sendMsgDic)