/// <summary>
        /// Configures JustSaying to use <see cref="System.Text.Json.JsonSerializer"/> for serialization.
        /// </summary>
        /// <param name="builder">The <see cref="ServicesBuilder"/> to configure.</param>
        /// <param name="options">The JSON serialization options to use.</param>
        /// <returns>
        /// The <see cref="ServicesBuilder"/> passed as the value of <paramref name="builder"/>.
        /// </returns>
        /// <exception cref="ArgumentNullException">
        /// <paramref name="builder"/> is <see langword="null"/>.
        /// </exception>
        public static ServicesBuilder WithSystemTextJson(this ServicesBuilder builder, JsonSerializerOptions options)
        {
            if (builder == null)
            {
                throw new ArgumentNullException(nameof(builder));
            }

            return(builder.WithSystemTextJson(() => options));
        }
 /// <summary>
 /// Configures JustSaying to use <see cref="System.Text.Json.JsonSerializer"/> for serialization.
 /// </summary>
 /// <param name="builder">The <see cref="ServicesBuilder"/> to configure.</param>
 /// <returns>
 /// The <see cref="ServicesBuilder"/> passed as the value of <paramref name="builder"/>.
 /// </returns>
 /// <exception cref="ArgumentNullException">
 /// <paramref name="builder"/> is <see langword="null"/>.
 /// </exception>
 public static ServicesBuilder WithSystemTextJson(this ServicesBuilder builder)
 {
     return(builder.WithSystemTextJson(null as JsonSerializerOptions));
 }