GovtNZ\SilverStripe\Api\ApiResponseSerialiser_Json::json_format
Format a flat JSON string to make it more human-readable https://github.com/GerHobbelt/nicejson-php.git
Signature
private function json_format(string
$json )
Parameters
$json
— string- The original JSON string to process
When the input is not a string it is assumed the input is RAW
and should be converted to JSON first of all.
Returns
- string
- Indented version of the original JSON string