Heim > Fragen und Antworten > Hauptteil
例如
我一个对象转成json后是这样
[{"desc":"data","type":1,"name":"data"}]
我想转成这样
[{"desc":"data","type":"1","name":"data"}]
type是int类型
PHPz2017-04-18 10:32:05
JSON.toJSONString(json, SerializerFeature.WriteNonStringValueAsString)