Bit new to ExtJS so sorry if this is a dumb question.
I wrote a function that takes raw JSON data and reformats it so that I can plug it straight into an ExtJS tree. It's *sort* of working because the tree is displaying, but I just realized it's doesn't have all of the data from the original JSON file so something needs fixing.
I figured out how to dump my reformatted JSON data in human readable format to a panel using encode, but there are no line breaks or indenting so it's stupid hard to look through for stuff done wrong.
Has anyone written a nice function for displaying encoded JSON with line breaks and indenting or is there an even easier way of doing this that I just don't know about yet? I looked in the API for a formatting option on the 'encode' keyword but didn't see anything...