View Code? Open in Web Editor
NEW
Simplify.Web.Json is a package which provides JSON serialization/deserialization for Simplify.Web web-framework controllers using `Newtonsoft.Json`.
License: GNU Lesser General Public License v3.0
simplify.web.json's People
Stargazers
Watchers
simplify.web.json's Issues
DIContainer.Current.Register<JsonModelBinder>(LifetimeType.Singleton);
Cannot send camel case request to api.
Please add json settings to json deserializer for managing request deserialization options.
public async Task BindAsync<T>(ModelBinderEventArgs<T> args, JsonSerializerSettings jsonSettings)
{
// some code
args.SetModel(JsonConvert.DeserializeObject<T>(args.Context.RequestBody, jsonSettings));
}