Skip to main content

HttpClientExtensions.JsonContent

A class in Alta.Api.DataTransferModels, Alta.Api.DataTransferModels.Extensions.

HTTP string content holding an object serialized to UTF-8 JSON. Used by the JSON post, put, patch and delete helpers.

Constructors​

MemberWhat it is
JsonContent(object obj)Creates a HttpClientExtensions.JsonContent from obj.

Methods​

1 private and internal method
MemberWhat it is
private static string Convert(object obj)Serializes the object with Json.NET. A null object gives an empty string and a warning.

Used in​

Members of other types that take, return or hold a JsonContent: