Ejemplo n.º 1
0
 /// <summary>
 /// resolve an object model to JObject with provied resolver
 /// </summary>
 /// <param name="value"></param>
 /// <param name="resolver"></param>
 /// <returns></returns>
 public virtual JObject ResolveObject(object value, CustomJsonResolver resolver)
 {
     ContractResolver = resolver;
     return ResolveObject(value);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// resolve object to JArray with provided resolver
 /// </summary>
 /// <param name="value"></param>
 /// <param name="resolver"></param>
 /// <returns></returns>
 public virtual JArray ResolveArray(object value, CustomJsonResolver resolver)
 {
     ContractResolver = resolver;
     return ResolveArray(value);
 }