php pretty json encode
snippet in php

php pretty json encode

user603

<?php
...
$json_string = json_encode($data, JSON_PRETTY_PRINT);