I'm using the built in JSON package with Flex 4.6, how do you get it to nicely format the output, e.g. indent with 4 spaces, put each object on a new line etc.?
Asked
Active
Viewed 3,368 times
5
-
1I don't understand what output you are trying to format. – JeffryHouser Oct 21 '12 at 02:31
1 Answers
21
The last param is used to insert spaces:
JSON.stringify(object, null, 4);

Barış Uşaklı
- 13,440
- 7
- 40
- 66