<PackageReference Include="System.Text.Json" Version="6.0.0-rc.1.21451.13" />

JsonMetadataServices

public static class JsonMetadataServices
public static JsonConverter<bool> BooleanConverter { get; }

public static JsonConverter<byte[]> ByteArrayConverter { get; }

public static JsonConverter<byte> ByteConverter { get; }

public static JsonConverter<char> CharConverter { get; }

public static JsonConverter<DateTime> DateTimeConverter { get; }

public static JsonConverter<decimal> DecimalConverter { get; }

public static JsonConverter<double> DoubleConverter { get; }

public static JsonConverter<Guid> GuidConverter { get; }

public static JsonConverter<short> Int16Converter { get; }

public static JsonConverter<int> Int32Converter { get; }

public static JsonConverter<long> Int64Converter { get; }

public static JsonConverter<object> ObjectConverter { get; }

public static JsonConverter<sbyte> SByteConverter { get; }

public static JsonConverter<float> SingleConverter { get; }

public static JsonConverter<string> StringConverter { get; }

public static JsonConverter<TimeSpan> TimeSpanConverter { get; }

public static JsonConverter<ushort> UInt16Converter { get; }

public static JsonConverter<uint> UInt32Converter { get; }

public static JsonConverter<ulong> UInt64Converter { get; }

public static JsonConverter<Uri> UriConverter { get; }

public static JsonConverter<Version> VersionConverter { get; }

public static JsonTypeInfo<TElement[]> CreateArrayInfo<TElement>(JsonSerializerOptions options, JsonTypeInfo elementInfo, JsonNumberHandling numberHandling, Action<Utf8JsonWriter, TElement[]> serializeFunc)

public static JsonTypeInfo<TCollection> CreateConcurrentQueueInfo<TCollection, TElement>(JsonSerializerOptions options, Func<TCollection> createObjectFunc, JsonTypeInfo elementInfo, JsonNumberHandling numberHandling, Action<Utf8JsonWriter, TCollection> serializeFunc) where TCollection : ConcurrentQueue<TElement>

public static JsonTypeInfo<TCollection> CreateConcurrentStackInfo<TCollection, TElement>(JsonSerializerOptions options, Func<TCollection> createObjectFunc, JsonTypeInfo elementInfo, JsonNumberHandling numberHandling, Action<Utf8JsonWriter, TCollection> serializeFunc) where TCollection : ConcurrentStack<TElement>

public static JsonTypeInfo<TCollection> CreateDictionaryInfo<TCollection, TKey, TValue>(JsonSerializerOptions options, Func<TCollection> createObjectFunc, JsonTypeInfo keyInfo, JsonTypeInfo valueInfo, JsonNumberHandling numberHandling, Action<Utf8JsonWriter, TCollection> serializeFunc) where TCollection : Dictionary<TKey, TValue>

public static JsonTypeInfo<TCollection> CreateICollectionInfo<TCollection, TElement>(JsonSerializerOptions options, Func<TCollection> createObjectFunc, JsonTypeInfo elementInfo, JsonNumberHandling numberHandling, Action<Utf8JsonWriter, TCollection> serializeFunc) where TCollection : ICollection<TElement>

public static JsonTypeInfo<TCollection> CreateIDictionaryInfo<TCollection, TKey, TValue>(JsonSerializerOptions options, Func<TCollection> createObjectFunc, JsonTypeInfo keyInfo, JsonTypeInfo valueInfo, JsonNumberHandling numberHandling, Action<Utf8JsonWriter, TCollection> serializeFunc) where TCollection : IDictionary<TKey, TValue>

public static JsonTypeInfo<TCollection> CreateIDictionaryInfo<TCollection>(JsonSerializerOptions options, Func<TCollection> createObjectFunc, JsonTypeInfo stringInfo, JsonTypeInfo objectInfo, JsonNumberHandling numberHandling, Action<Utf8JsonWriter, TCollection> serializeFunc) where TCollection : IDictionary

public static JsonTypeInfo<TCollection> CreateIEnumerableInfo<TCollection, TElement>(JsonSerializerOptions options, Func<TCollection> createObjectFunc, JsonTypeInfo elementInfo, JsonNumberHandling numberHandling, Action<Utf8JsonWriter, TCollection> serializeFunc) where TCollection : IEnumerable<TElement>

public static JsonTypeInfo<TCollection> CreateIEnumerableInfo<TCollection>(JsonSerializerOptions options, Func<TCollection> createObjectFunc, JsonTypeInfo elementInfo, JsonNumberHandling numberHandling, Action<Utf8JsonWriter, TCollection> serializeFunc) where TCollection : IEnumerable

public static JsonTypeInfo<TCollection> CreateIListInfo<TCollection>(JsonSerializerOptions options, Func<TCollection> createObjectFunc, JsonTypeInfo objectInfo, JsonNumberHandling numberHandling, Action<Utf8JsonWriter, TCollection> serializeFunc) where TCollection : IList

public static JsonTypeInfo<TCollection> CreateIListInfo<TCollection, TElement>(JsonSerializerOptions options, Func<TCollection> createObjectFunc, JsonTypeInfo elementInfo, JsonNumberHandling numberHandling, Action<Utf8JsonWriter, TCollection> serializeFunc) where TCollection : IList<TElement>

public static JsonTypeInfo<TCollection> CreateImmutableDictionaryInfo<TCollection, TKey, TValue>(JsonSerializerOptions options, Func<TCollection> createObjectFunc, JsonTypeInfo keyInfo, JsonTypeInfo valueInfo, JsonNumberHandling numberHandling, Action<Utf8JsonWriter, TCollection> serializeFunc, Func<IEnumerable<KeyValuePair<TKey, TValue>>, TCollection> createRangeFunc) where TCollection : IReadOnlyDictionary<TKey, TValue>

public static JsonTypeInfo<TCollection> CreateImmutableEnumerableInfo<TCollection, TElement>(JsonSerializerOptions options, Func<TCollection> createObjectFunc, JsonTypeInfo elementInfo, JsonNumberHandling numberHandling, Action<Utf8JsonWriter, TCollection> serializeFunc, Func<IEnumerable<TElement>, TCollection> createRangeFunc) where TCollection : IEnumerable<TElement>

public static JsonTypeInfo<TCollection> CreateIReadOnlyDictionaryInfo<TCollection, TKey, TValue>(JsonSerializerOptions options, Func<TCollection> createObjectFunc, JsonTypeInfo keyInfo, JsonTypeInfo valueInfo, JsonNumberHandling numberHandling, Action<Utf8JsonWriter, TCollection> serializeFunc) where TCollection : IReadOnlyDictionary<TKey, TValue>

public static JsonTypeInfo<TCollection> CreateISetInfo<TCollection, TElement>(JsonSerializerOptions options, Func<TCollection> createObjectFunc, JsonTypeInfo elementInfo, JsonNumberHandling numberHandling, Action<Utf8JsonWriter, TCollection> serializeFunc) where TCollection : ISet<TElement>

public static JsonTypeInfo<TCollection> CreateListInfo<TCollection, TElement>(JsonSerializerOptions options, Func<TCollection> createObjectFunc, JsonTypeInfo elementInfo, JsonNumberHandling numberHandling, Action<Utf8JsonWriter, TCollection> serializeFunc) where TCollection : List<TElement>

public static JsonTypeInfo<T> CreateObjectInfo<T>(JsonSerializerOptions options, JsonObjectInfoValues<T> objectInfo)

public static JsonPropertyInfo CreatePropertyInfo<T>(JsonSerializerOptions options, bool isProperty, bool isPublic, bool isVirtual, Type declaringType, JsonTypeInfo propertyTypeInfo, JsonConverter<T> converter, Func<object, T> getter, Action<object, T> setter, JsonIgnoreCondition? ignoreCondition, bool hasJsonInclude, JsonNumberHandling? numberHandling, string propertyName, string jsonPropertyName)

public static JsonTypeInfo<TCollection> CreateQueueInfo<TCollection, TElement>(JsonSerializerOptions options, Func<TCollection> createObjectFunc, JsonTypeInfo elementInfo, JsonNumberHandling numberHandling, Action<Utf8JsonWriter, TCollection> serializeFunc) where TCollection : Queue<TElement>

public static JsonTypeInfo<TCollection> CreateStackInfo<TCollection, TElement>(JsonSerializerOptions options, Func<TCollection> createObjectFunc, JsonTypeInfo elementInfo, JsonNumberHandling numberHandling, Action<Utf8JsonWriter, TCollection> serializeFunc) where TCollection : Stack<TElement>

public static JsonTypeInfo<TCollection> CreateStackOrQueueInfo<TCollection>(JsonSerializerOptions options, Func<TCollection> createObjectFunc, JsonTypeInfo elementInfo, JsonNumberHandling numberHandling, Action<Utf8JsonWriter, TCollection> serializeFunc, Action<TCollection, object> addFunc) where TCollection : IEnumerable

public static JsonTypeInfo<T> CreateValueInfo<T>(JsonSerializerOptions options, JsonConverter converter)

public static JsonConverter<T> GetEnumConverter<T>(JsonSerializerOptions options) where T : struct, Enum

public static JsonConverter<T?> GetNullableConverter<T>(JsonTypeInfo<T> underlyingTypeInfo) where T : struct