angelozerr / eclipse-wtp-json

A JSON Editor based on WTP Eclipse (POC)
MIT License
5 stars 2 forks source link

Improve JSON formatting #9

Open jabby opened 9 years ago

jabby commented 9 years ago

If I write a json content like this.

{
    "string": "A string",
    "object": {
        "string": "A string",
        "string2": "Other string"
    }
}

And after I use ctrl+shift+f to format the JSON code, I get this :

{
    "string":"A string"

}"object":{"string":"A string","string2":"Other string"}

}
}

Is it possible to improve formatting ? Thanks a lot.

angelozerr commented 9 years ago

Is it possible to improve formatting ? Thanks a lot.

Yes sure.

The big problem today with JSON Editor is the synchronization between an internal JSON model and the editor. When this issue will be finished, I could improve the formatting.

Note that completion should starting to work (with some bugs because synch of model) for .jshintrc for instance.