Json-Eclipse-Plugin icon indicating copy to clipboard operation
Json-Eclipse-Plugin copied to clipboard

[Feature Request] Support for json5

Open Klaboe opened this issue 2 years ago • 5 comments

A sub-set of json, json5 is a more relaxed version, aimed to be easier to use by humans.

It would be awesome if this plugin could provide support for this as well; and i think ANTLR4 supports the grammer.

Klaboe avatar Apr 17 '23 13:04 Klaboe

Very interesting - thanks for the hint. Do you know if there's a grammar available for ANTLR4 ?

msteiger avatar Apr 27 '23 18:04 msteiger

I think so 😅

There seems to be a json5 lexer parser here: http://lab.antlr.org but im not sure if that is all you need or not

Seems to be found here: https://github.com/antlr/grammars-v4/blob/master/json5/JSON5.g4

Klaboe avatar Apr 27 '23 20:04 Klaboe

Did you have a chance to look into this?

Klaboe avatar Aug 14 '24 19:08 Klaboe

No, sorry. I use IntelliJ now most of the time and don't work on this plugin anymore. If you want to create a PR, I would review and test it, though.

msteiger avatar Aug 22 '24 09:08 msteiger