Exemple #1
0
 public static string ToJsonSnakeCase(this object obj)
 {
     return(JsonConvert.SerializeObject(obj, SerializationConfigurationHelper.CreateJsonSnakeCaseSerializerSettings()));
 }
Exemple #2
0
 public static T FromJsonSnakeCase <T>(this string json)
 {
     return(JsonConvert.DeserializeObject <T>(json, SerializationConfigurationHelper.CreateJsonSnakeCaseSerializerSettings()));
 }