Open logistiker opened 11 years ago
Isn't that what
print_r(json_decode($json));
would do?
That is most definitely not the same thing. Nowhere in my code am I decoding the json and nor would they add a json_encode option to pretty print it if there already was a simple method to do this. The point is to display the same output but tabbed and with carriage returns to make it human readable but not to change it so drastically that it could no longer be processed by a program. This is especially useful for testing purposes to inspect the output to ensure it's correct.
I am happy to add this in if we accept https://github.com/zircote/Hal/issues/18
Have some pity on us humans who find it hard to read everything on one line: