Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Class

JsonContent

class JsonContent

Module: System.Web.Http.Json
Assembly: System.Web.dll
Source file: JsonContent.rvn

Inheritance: Object → JsonContent

Shared synchronous JSON conversion for buffered request and response content.

Remarks

Development API. Reuses System.Data.Json limits and bounded nested mapping policy. Creation sets application/json; charset=utf-8. Reads explicitly interpret bytes as UTF-8 JSON without checking headers or status, consuming content, or completing an exchange. No asynchronous stream reading or cancellation.

Methods

9 items
Static member: Create(value: object) -> Result<HttpContent, JsonError> Serializes a model into buffered UTF-8 HTTP content.
Static member: CreateNode(value: JsonValue) -> Result<HttpContent, JsonError> Writes a JSON node into buffered UTF-8 HTTP content.
Equals(other: object?) -> bool Tests reference identity by default; an ordinary class may override equality. Inherited from Object.Equals
GetHashCode() -> int Returns a stable identity hash by default; an ordinary class may override it consistently with equality. Inherited from Object.GetHashCode
GetType() -> TypeInfo Returns metadata for the concrete runtime type of this instance. Inherited from Object.GetType
Static member: Read(content: HttpContent, type: TypeInfo) -> Result<object, JsonError> Reads a model from buffered HTTP content using a runtime-backed type.
Static member: Read<T>(content: HttpContent) -> Result<T, JsonError> Reads a typed model from buffered HTTP content.
Static member: ReadNode(content: HttpContent) -> Result<JsonValue, JsonError> Parses buffered HTTP bytes into the closed JSON DOM.
ToString() -> string Returns the concrete runtime type name for supported references, or display text from a class or boxed-struct override. Inherited from Object.ToString