php json_encode beautify
snippet in php

php json_encode beautify

user2449

json_encode($data, JSON_PRETTY_PRINT)