Skip to content
This repository was archived by the owner on Mar 2, 2018. It is now read-only.

Default/Null values can't be ignored when using AsDictionary() #14

Open
kobynet opened this issue Dec 16, 2015 · 1 comment
Open

Default/Null values can't be ignored when using AsDictionary() #14

kobynet opened this issue Dec 16, 2015 · 1 comment

Comments

@kobynet
Copy link

kobynet commented Dec 16, 2015

This is rather a question more than it's an issue.

Is there a way we can leverage the ignore nulls flag json.net has to offer here?

Since grainState.AsDictionary() is used, KeyValuePair objects are being serialized which will never be null since key is field name.

@richorama
Copy link
Member

Hey @kobynet, good question. Are you concerned that properties with null values will be serialised unnecessarily?

Happy to change that behaviour, if you send a PR with a test that covers the case.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants