Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

json enum string

using Newtonsoft.Json;
using Newtonsoft.Json.Converters;

[JsonConverter(typeof(StringEnumConverter))]
public Gender Gender { get; set; }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #json #enum #string
ADD COMMENT
Topic
Name
4+2 =