public NonDefaultConstructorMartenJsonNetContractResolver( Casing casing, CollectionStorage collectionStorage, NonPublicMembersStorage nonPublicMembersStorage = NonPublicMembersStorage.Default) : base(casing, collectionStorage, nonPublicMembersStorage) { }
public JsonNetContractResolver(Casing casing, CollectionStorage collectionStorage, NonPublicMembersStorage nonPublicMembersStorage = NonPublicMembersStorage.Default) { Casing = casing; CollectionStorage = collectionStorage; NonPublicMembersStorage = nonPublicMembersStorage; SetNamingStrategy(casing); }
/// <summary> /// Use the default serialization (ilmerged Newtonsoft.Json) with Enum values /// stored as either integers or strings /// </summary> /// <param name="enumStorage"></param> /// <param name="casing">Casing style to be used in serialization</param> /// <param name="collectionStorage">Allow to set collection storage as raw arrays (without explicit types)</param> /// <param name="nonPublicMembersStorage">Allow non public members to be used during deserialization</param> public void UseDefaultSerialization( EnumStorage enumStorage = EnumStorage.AsInteger, Casing casing = Casing.Default, CollectionStorage collectionStorage = CollectionStorage.Default, NonPublicMembersStorage nonPublicMembersStorage = NonPublicMembersStorage.Default ) { Serializer( new JsonNetSerializer { EnumStorage = enumStorage, Casing = casing, CollectionStorage = collectionStorage, NonPublicMembersStorage = nonPublicMembersStorage }); }