Skip to content

GetInboundApiOptionsClone Method ​

Definition ​

  • Namespace: JASE.Serializers
  • Assembly: JASE.Serializers.dll

JsonSerializerOptions GetInboundApiOptionsClone() ​

csharp
JsonSerializerOptions GetInboundApiOptionsClone()

Returns a clone of the default serializer options with inbound single-or-array list leniency enabled.

Remarks ​

Registers SingleOrArrayJsonConverterFactory so list- and array-shaped members accept either a JSON array or a single JSON object. Use for REST request bodies where clients may send one item without wrapping it in an array. Default GetOptionsClone behavior is unchanged.