-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Type] annotation for properties #9
Comments
At this point I'm kind of unsure whether or how the So would there have to be a (extensible?) way to ensure that only the date portion of a
|
Ok, so regarding the previous comment, I now see that this will be possible by using a custom |
Also, |
How would a custom |
Definitely, one converter for a literal type. I'm not sure what in the design of json.net you don't like. There are three options for setting converters
Don't they work for you? |
Ah, and for the third to work, the converter must |
When a the type is serialised to a If the Perhaps I've been digging at this from the wrong angle, but that's at least the problems I've had related to this previously. |
OIC. Like you said, one converter for one (literal) type. Instead of using |
Exactly. You would have to set |
The
TypeAttribute
proposed by @asbjornu (see #6) could also be used with properties to declare literal type:would serialize as smth like
The text was updated successfully, but these errors were encountered: