Pretty print json if possible.