File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 5
5
#if LOOTLOCKER_USE_NEWTONSOFTJSON
6
6
using Newtonsoft . Json ;
7
7
using Newtonsoft . Json . Serialization ;
8
+ using Newtonsoft . Json . Converters ;
8
9
#else
9
10
using LLlibs . ZeroDepJson ;
10
11
#endif
@@ -22,10 +23,11 @@ public static class LootLockerJsonSettings
22
23
public static readonly JsonSerializerSettings Default = new JsonSerializerSettings
23
24
{
24
25
ContractResolver = new DefaultContractResolver { NamingStrategy = new SnakeCaseNamingStrategy ( ) } ,
26
+ Converters = { new StringEnumConverter ( ) } ,
25
27
Formatting = Formatting . None
26
28
} ;
27
29
#else
28
- public static readonly JsonOptions Default = new JsonOptions ( JsonSerializationOptions . Default & ~ JsonSerializationOptions . SkipGetOnly ) ;
30
+ public static readonly JsonOptions Default = new JsonOptions ( ( JsonSerializationOptions . Default | JsonSerializationOptions . EnumAsText ) & ~ JsonSerializationOptions . SkipGetOnly ) ;
29
31
#endif
30
32
}
31
33
You can’t perform that action at this time.
0 commit comments