Flex: how to pretty print JSON.stringify?

I use the built-in JSON package with Flex 4.6, as you format it well, for example, indent with 4 spaces, put each object in a new line, etc.

+4
source share
1 answer

The last parameter is used to insert spaces:

JSON.stringify(object, null, 4); 
+18
source

Source: https://habr.com/ru/post/1441029/


All Articles