Possible Duplicate:
How can I beautify JSON programmatically?
I have build a code generator that gives me a .js
file as output with the javascript in it.
The code works fine but the only problem is for the indentation.
I have written my code generator in php. Can anyone suggest me a library or something else that will help me to auto indent my generated code in php.