-
Notifications
You must be signed in to change notification settings - Fork 41
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
JsonResult not serialized with SpanJson #141
Comments
I kinda figured it out. When I use |
Yes, SpanJson does not provide an implementation for that type, if you want to use SpanJson, you should skip JsonResult. I'll leave this open and change the title to missing Jsonresult support and flag it as enhancement. |
Thanks! I came to the very same conclusion just as I saw your reply :) When using Newtonsoft, they simply override the default |
Yes, that's the idea. Unfortunately atleast |
I'm returning a JSON object in a controller action which I would like to use alternative property names for.
Unfortunately it doesn't seem like the
[DataMember(Name="differentName")]
is working. I'm getting the original property names instead. Am I missing something?It works well when sending data with help of the
FromBody
attribute but not when outputting data it seems.The text was updated successfully, but these errors were encountered: