added pretty print to json debug strings