mjrgit / chrome-rest-client

Automatically exported from code.google.com/p/chrome-rest-client
0 stars 0 forks source link

Enable pretty-print of JSONP response #188

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
JSONP responses from server are successfully syntax highlighting but remain as 
a single line.  

Enhancement request is for parser to notice when the response is json wrapped 
in a function call, then display the json on multi lines like normal json 
output.

An example of a good Chrome extension that does this kind of pretty printing is 
https://github.com/gildas-lormeau/JSONView-for-Chrome

i.e. instead of current single line:
JSON_CALLBACK([{"id": 3,"name": "John","data": {"level": "manager","salary": 
50000}},{"id": 4,"name": "Bill","data": {"level": "employee","salary": 30000}}])

output should look something like:
JSON_CALLBACK(
[
  {
    "id": 3,
    "name": "John",
    "data": {
      "level": "manager",
      "salary": 50000
    }
  },
  {
    "id": 4,
    "name": "Bill",
    "data": {
      "level": "employee",
      "salary": 30000
    }
  }
]
)

Original issue reported on code.google.com by bigmic...@gmail.com on 1 Jul 2013 at 9:22

GoogleCodeExporter commented 8 years ago
Great idea,
Thanks for your input.
I'm working on new version right now so I probable implement it in new release.

Original comment by jarro...@gmail.com on 16 Jul 2013 at 4:27

GoogleCodeExporter commented 8 years ago
Great idea,
Thanks for your input.
I'm working on new version right now so I probable implement it in new release.

Original comment by jarro...@gmail.com on 16 Jul 2013 at 4:27

GoogleCodeExporter commented 8 years ago
It's now 2014 and I'm sure I'm not the only one looking forward to this 
feature.  Any progress?

Original comment by joshbe...@gmail.com on 7 Feb 2014 at 4:19