JSON formatting (pretty print) and sorting (by key/user name)