Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Case-insensitive deserialize and camelCase serialize options #35

Closed
swimtver opened this issue Jul 23, 2014 · 10 comments
Closed

Case-insensitive deserialize and camelCase serialize options #35

swimtver opened this issue Jul 23, 2014 · 10 comments

Comments

@swimtver
Copy link

It will be great to have this options.

@kevin-montrose
Copy link
Owner

I'm really reluctant to add additional options to Jil, as each new option has to be accounted for in the typecache classes.

Jil already supports customizable names (via [DataMember] and [JilDirective]), which is hopefully sufficient for most cases. If not, then a more extensible JSON library (such as JSON.NET) would be a better choice for a project.

@mexx
Copy link

mexx commented Jul 26, 2014

Maybe the camelCase option could be provided as assembly wide attribute.
I have many classes currently serialized with camelCase, it would be simpler to add an attribute to the assembly as to edit all the properties on all classes.
Just a thought.

@phillip-haydon
Copy link

This is a shame, I just came across this project, but lack of camelCasing is silly.

@jchannon
Copy link

jchannon commented May 5, 2015

I think case sensitivity is quite a big deal, most json libs support this feature.

@AlienEngineer
Copy link

+1 for this feature

2 similar comments
@liyongjing
Copy link

+1 for this feature

@hallvar
Copy link

hallvar commented Jul 13, 2015

+1 for this feature

@NickCraver
Copy link
Collaborator

+1 for this from me too. It'd eliminate a ton of code where this is used. Rather than an ever-increasing n attributes (as well as the need for plugin assemblies to have dependencies in a CoreCLR world), a Jil option controlling serialization globally would be much more optimal.

@razbensimon
Copy link

+1

@Wazner
Copy link
Contributor

Wazner commented Aug 25, 2015

For anyone reading this issue and hasn't looked at the pull requests yet.
There currently is a pull request that implements camelCasing.

See #154

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests