Print JSON expanded

If there is a lot of JSON to be printed out on error it appears as one very long coloured string, we should pretty format it so that its easy to read.