Close #643. Support pretty-print of JSON via HTTP API