例如我一个对象转成json后是这样
[{"desc":"data","type":1,"name":"data"}]我想转成这样[{"desc":"data","type":"1","name":"data"}]type是int类型
The standard data format of JSON is that numeric types do not require double quotes, unless your data type is a string. .
JSON.toJSONString(json, SerializerFeature.WriteNonStringValueAsString)
The standard data format of JSON is that numeric types do not require double quotes, unless your data type is a string. .