Details
Description
It would be really nice if there was a way to get human readable JSON like so:
{"myPrefix4":
instead of only the machine readable stuff like:
{"myPrefix4":{"id":"4-one","stuff":"something","number":0,"sakaiEntity":true,"sakaiEntity-URL":"http:\/\/localhost:8001\/portal\/direct\/myPrefix4\/4-one","sakaiEntity-ID":"4-one"}}
This would need to be optional but it would make it a lot easier for developers who need to work with the JSON to read it when there are some spaces and line breaks.
Activity
Chris Hyzer
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | JsonIndenter.java [ 35136 ] |
Chris Hyzer
made changes -
| Attachment | JsonIndenter.java [ 35139 ] |
Dan Diephouse
made changes -
| Fix Version/s | 1.2 [ 15247 ] | |
| Fix Version/s | 1.1 [ 13413 ] |
Dejan Bosanac
made changes -
| Fix Version/s | 1.3 [ 16146 ] | |
| Fix Version/s | 1.2 [ 15247 ] |
Sergey Beryozkin
made changes -
| Fix Version/s | 1.4 [ 17350 ] | |
| Fix Version/s | 1.3 [ 16146 ] |
Sergey Beryozkin
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Assignee | Dan Diephouse [ dandiep ] | Sergey Beryozkin [ sergey_beryozkin ] |
| Fix Version/s | 1.3.1 [ 18239 ] | |
| Resolution | Fixed [ 1 ] |
I am attaching code that you can have that I wrote which formats and indents a json string... feel free to use it, modify, throw away, whatever