Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用带有 Flex 4.6 的内置 JSON 包,你如何让它很好地格式化输出,例如缩进 4 个空格,将每个对象放在一个新行上等等?
最后一个参数用于插入空格:
JSON.stringify(object, null, 4);