Skip to content

Commit

Permalink
Updated readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
makosovic committed Oct 20, 2015
1 parent f53778d commit 6f47a26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ Specify service name for creating an interface to a named service:
The API supports pluggable serialization. This SDK comes with the default `JsonContentSerializer` which is using [Json.NET](http://www.newtonsoft.com/json).
To use your custom serializer, consider using the other `RestContext` constructor accepting a user-defined `IContentSerializer` instance.

By default `JsonContentSerializer` uses `SnakeCaseContractResolver` to resolve property names which means it allows you to use pascal-cased convention in your code and change the names on serialization to follow snake-cased convention (ex MyProperty to my_property). To override this behavior you will have to provide your own `DefaultContractResolver` and plug it into `JsonContentSerializer`.
By default Json.NET resolves property names as they are defined in the class unless specified otherwise with JsonPropertyAttribute.

#### SQL query parameters

Expand Down

0 comments on commit 6f47a26

Please sign in to comment.