private void Test_8_FastJsonMyText() { string jsonString = "{\"StringField\":\"ha\\\"ha\\\"ha\"}"; VeerDebug.Log("json string : " + jsonString); TestJsonConvert test = FastJson.Deserialize <TestJsonConvert>(jsonString); VeerDebug.Log("fast json string field : " + test.StringField); string serialize = FastJson.Serialize(test); VeerDebug.Log("fast json serialize : " + serialize); }
private void Test_9_FastJsonSerialize() { JSONObject json = JSONObject.obj; json.AddField("StringField", TestInnerJsonText); string jsonString = json.ToString(); VeerDebug.Log("json to string : " + jsonString); TestJsonConvert test = FastJson.Deserialize <TestJsonConvert>(jsonString); VeerDebug.Log("fast json string field : " + test.StringField); string serialize = FastJson.Serialize(test); VeerDebug.Log("fast json serialize : " + serialize); }