#97·Blog

你会用 JSON.stringify() 呢?

作者: ljianshu创建于 2021年5月5日更新于 2023年2月25日

1. Basic usage

JSON.stringify() can serialize an object into a JSON string. By default, JSON.stringify() outputs a JSON string without spaces or indentation, so the value of jsonText is as follows: