When debugging output from the API, it can often be useful to have the JSON output rendered in an indented human-readable fashion.
To do this you use the indent-json option – passed as either a query string value e.g.
- or just: /api/permissions?indent-json
Alternatively, you can also pass it as a request header (this is the method we recommend) using the same name and/or value as for the query string.
In responses where the indent-json option is set, a response header will be set with the name indent-json and a value of true.
Indented output (using indent-json option)