Use jsonprettyprint.org from the command line. Replace everything after the -d with your json.
curl -XPOST https://jsonprettyprint.org/api -d '{"user" : 1}'