cf curl JSON output is not consistent
We noticed that some endpoints have a nicely formatted JSON response, while others do not.
cf curl /v2/services => nicely formatted JSON
cf curl /v2/service_brokers => unintelligible blob of JSON
We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: http://www.pivotaltracker.com/story/show/66260020
This is a CloudController issue. We created a story in the Services Public icebox, and we'll close this issue.
Thanks, CF Community Pair (@stupakov, @mbhave)
Interestingly enough, the JSON can be parsed and formatted entirely from the CLI with a pretty simple hack. Here is an example: http://play.golang.org/p/b1V2CcMqsa
We take what the CC gives us. But we are looking to fix this.
https://www.pivotaltracker.com/story/show/71425006
https://www.pivotaltracker.com/story/show/71425006 has been committed and accepted.
5 million bonus internet points for @ryanmoran for pointing me in the direction of Golang's json.Indent method, which is awesome.