How can I return pretty json from the REST API ?
When I query though curl, I receive one long string
curl http://foo.my.salesforce.com/services/data
[{"version":"20.0","label":"Winter '11","url":"/services/data/v20.0"},{"version":"21.0","label":"Spring '11","url":"/services/data/v21.0"},{"version":"22.0","label":"Summer '11","url":"/services/data/v22.0"},{"version":"23.0","label":"Winter '12","url":"/services/data/v23.0"},{"version":"24.0","label":"Spring '12","url":"/services/data/v24.0"},{"version":"25.0","label":"Summer '12","url":"/services/data/v25.0"},{"version":"26.0","label":"Winter '13","url":"/services/data/v26.0"},{"version":"27.0","label":"Spring '13","url":"/services/data/v27.0"},{"version":"28.0","label":"Summer '13","url":"/services/data/v28.0"}]
I want the string to be more human readable.
I have tried using pretty=true because that works in other REST API's that I have used in the past.
curl http://foo.my.salesforce.com/services/data?pretty=true