JSONization ------ date type becomes timestamp after converting to JSON

foreword

When we JSONize an object (which contains some date type fields), the date type will be converted to a timestamp when JSON is processed

solve

JSON.parse(JSONObject.toJSONStringWithDateFormat(要json的值,"yyyy-MM-dd HH:mm:ss")).toString();

Guess you like

Origin blog.csdn.net/lijie0213/article/details/124887474