-
Notifications
You must be signed in to change notification settings - Fork 42
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
Any way to automatically camelCase all keys? #12
Comments
We are solving this problem in our projects with https://github.com/RSCSCybersecurity/sparrow and it works pretty well. |
Or in case you wanna avoid using an extra middleware (Which isn't a bad solution, but some might prefer not to), you could in your builder-files use |
I agree with @Fire-Dragon-DoL it would be great to have support for automatically camelCasing keys for output. Something like the |
I was using a MultiJson.use(MyCustomKeyTransformer) to do this, and it worked pretty well. Unfortunately a JB commit in October seems to have broken multi_json support. Multi_json does provide a nice two-way API, though, if the situation is solvable. |
Hello! In ruby we use snake_case everywhere and I suffer when I have to camelCase in any place.
Is there any option to camelKeys automatically all keys right before spitting out the JSON?
I would use it so that my JSON api stays consistent with javascript notation
The text was updated successfully, but these errors were encountered: