0

I am sending JSON result from my API in pascal case, but for only a particular web-api action I want to sent the response in camelCase.

I can do it globally using

 settings.ContractResolver = new CamelCasePropertyNamesContractResolver();

But how can i do that only for a particular web-api-2 controller-action?

harishr
  • 17,807
  • 9
  • 78
  • 125
  • I am asking it for a particular action and not for whole controller, hence not a duplicate – harishr Jun 07 '16 at 16:19
  • That answer links to this answer: [use camel case serialization only for specific actions](https://stackoverflow.com/questions/14528779/use-camel-case-serialization-only-for-specific-actions). Is this what you need? – dbc Jun 07 '16 at 18:17
  • 1
    thanks @dbc thats what i wanted – harishr Jun 08 '16 at 13:22

0 Answers0