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