Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Allow custom JsonSerializerSettings to be provided to a HostingModel #234

@bradchristensen

Description

@bradchristensen

Currently in my application I don't want to use the CamelCasePropertyNamesContractResolver when serialising JSON to and from the Node.js process, but this is a readonly setting in each of the existing HostingModels (see

ContractResolver = new CamelCasePropertyNamesContractResolver()
). It threw me that this was the default behaviour, although I don't think it's a bad thing. We should be migrating our app to use it in future.

I'm not familiar with how everything fits together so I can't propose any implementational details but would be interested to know if it would be a possibility to make this configurable when instantiating a HostingModel. Or is it expected that a custom HostingModel should be created to configure this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions