edi-json icon indicating copy to clipboard operation
edi-json copied to clipboard

Invalid JSON (sort-of)

Open jonnio opened this issue 4 years ago • 1 comments

When using the converted json and parsing into a java or javascript (or other) object model, characters like - (dash) and _ (underscore) cause the user to use the object['property-name'] type of syntax instead of object.propertyName

Please add an option to remove those characters and simply use camel case for json properties.

jonnio avatar Nov 27 '19 13:11 jonnio

While these key names aren't technically invalid JSON, I understand that the consensus seems to be in favor of camel case. The fact that it would improve compatibility with object models is big plus. In hindsight, it probably would have been better to have started that way a few years ago.

I think that adding an option so that both styles are available is a good idea. Thanks.

canabrook avatar Nov 27 '19 14:11 canabrook