-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
uppercase/lowercase keys in the serialized JSON #358
Comments
Use
|
Sounds like what I need, but I can't find this attribute in RestSharp. Do I need to import some other dll? I'm using the MonoTouch version of RestSharp. Edit: I added the Newtonsoft.Json MonoTouch library and added the attribute, but it was still generating keys with uppercase letters. |
I asked about this on the mailing list, and got a response that this is something specific to JSON.NET, not RestSharp. If that's the case, I would like to open this issue as a feature request. |
It was opened a feature-request? |
it was not. if this feature is needed then RestSharp gives you the ability to use a custom de/serializer so you'd have to use that for now. |
Given the class
the generated JSON will be
However, the REST API on the other end of the wire follows another naming convention where the keys are expected to be in lowercase, like
Is there an easy way to achieve this without resorting to a custom serializer? It's such a small change that preferrably it would only be a configuration switch somewhere.
The text was updated successfully, but these errors were encountered: