using Newtonsoft.Json.Linq;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
namespace JsonConverterx
{
class Program
static void Main(string[] args)
var str = "value1";
var value = (int)Enum.Parse<MyEnum>(str);
value.Dump();
}
public enum MyEnum
value1= 1,
value2= 2,
value3= 3,
value4= 4