<PackageReference Include="Refit" Version="15.1.0" />

Refit.BodySerializationMethod

Defines methods to serialize HTTP requests' bodies.
Default = 0

Encodes everything using the ContentSerializer in RefitSettings except for strings. Strings are set as-is.

Json = 1

Json encodes everything, including strings.

Encodes an enumerable body as JSON Lines (newline-delimited JSON): each element is serialized with the ContentSerializer and emitted on its own line. See .

Encodes everything using the ContentSerializer in RefitSettings.

Form-UrlEncode's the values.