Pretty print JSON

Uses JSON_PRETTY_PRINT flag to beautify JSON. Read more.

php
fork add to bundle source
function pretty_json($data) { return json_encode($data, JSON_PRETTY_PRINT); }

usage

load_function('pretty_json'); echo pretty_json(['test' => 1]); // { // "test": 1 // }
← how to use this in app?
create log ...inout