go to bug id or search bugs for
The indentation string is currently hard coded as can be seen here:
It'd be nicer for users to be able to specify what they want to use for indentation, e.g. more or less spaces or tabs.
To achieve this, a 4th optional parameter will need to be added to json_encode (as it must not be a global setting), or a built in JSON encoder class can be created in which extra features such as indentation can be set per instance.
Add a Patch
Add a Pull Request