/// <summary> /// See interface docs. /// </summary> /// <param name="obj"></param> /// <param name="resolver"></param> /// <returns></returns> public string Serialise(object obj, TypeFormatterResolver resolver) { return(JsonConvert.SerializeObject( obj, JsonSerialiserSettingsCache.Fetch(resolver) )); }
/// <summary> /// See interface docs. /// </summary> /// <param name="modelType"></param> /// <param name="resolver"></param> /// <param name="jsonText"></param> /// <returns></returns> public object Deserialise(Type modelType, TypeParserResolver resolver, string jsonText) { return(JsonConvert.DeserializeObject( jsonText, modelType, JsonSerialiserSettingsCache.Fetch(resolver) )); }