5

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.?

fred basset
  • 9,774
  • 28
  • 88
  • 138

1 Answers1

21

The last param is used to insert spaces:

JSON.stringify(object, null, 4);
Barış Uşaklı
  • 13,440
  • 7
  • 40
  • 66