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