/// <summary> /// Incoming JSON strings will be parsed using the System.Text.Json library /// </summary> /// <param name="builder"></param> /// <returns></returns> public static IHypermediaResolverBuilder WithSystemTextJsonStringParser(this IHypermediaResolverBuilder builder) { return(builder.WithCustomStringParser(() => new SystemTextJsonStringParser())); }
/// <summary> /// Incoming JSON strings will be parsed using the Newtonsoft.Json library /// </summary> /// <param name="builder"></param> /// <returns></returns> public static IHypermediaResolverBuilder WithNewtonsoftJsonStringParser(this IHypermediaResolverBuilder builder) { return(builder.WithCustomStringParser(() => new NewtonsoftJsonStringParser())); }