Formatting JSON With PHP
July 17th, 2012The built-in json_encode() function in PHP puts everything on one line. For development and debugging, it can often be more useful to have properly indented, human-readable JSON that makes it easier to manually inspect the encoded data and check it for problems. Here’s a function that lets you format/pretty-print any JSON string to be more […]
Continue Reading...