You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the StringEnumConverter does not result in enums serialized as strings in Azure Functions for the latest version of Newtonsoft.Json, but it does work for v9.0.1
Source/destination types
using Newtonsoft.Json;using Newtonsoft.Json.Converters;namespace Data.Models
{[JsonConverter(typeof(StringEnumConverter))]publicenumKnowledgeType{Web,People,Video,Document,Images}}
@roberto-mardeni@kevinwedwards is this still impacting you with the current production version of 2.0? That version doesn't use 9.0.1, so I wouldn't expect this to be an issue there. Can you confirm?
Hi... if we are still paying attention to this, I am facing exactly same issue when I ported my 2.2 Web Project to 3.0. Anyone has any pointer to fixing this, please share!
ghost
locked as resolved and limited conversation to collaborators
Jan 1, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Using the StringEnumConverter does not result in enums serialized as strings in Azure Functions for the latest version of Newtonsoft.Json, but it does work for v9.0.1
Source/destination types
Source/destination JSON
Expected behavior
Type should be serialized as string, in this example "Document"
Actual behavior
Steps to reproduce
Using version 9.0.1 works, upgrading to any version after that does not.
I tested similar code in Console Apps in both .Net Framework & .Net Core and the problem does not manifest there, only in Azure Functions.
Moved from JamesNK/Newtonsoft.Json#1772
The text was updated successfully, but these errors were encountered: