edi-json
edi-json copied to clipboard
Invalid JSON (sort-of)
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.
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.