Method
CreateNode
static func CreateNode(value: JsonValue) -> Result<HttpContent, JsonError>
Declaring type: JsonContent
Module: System.Web.Http.Json
Assembly: System.Web.dll
Source file: JsonContent.rvn
Writes a JSON node into buffered UTF-8 HTTP content.
Parameters
| Name | Type | Description |
|---|---|---|
value |
JsonValue | DOM root to serialize. |
Return value
Result<HttpContent, JsonError>
JSON-tagged content or a structured validation error.
Remarks
Uses existing document size, depth and value-count limits; no network I/O.