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

API Browser

Method

Add

func Add(name: string, value: JsonValue) -> Result<void, JsonError>

Declaring type: JsonObject
Module: System.Data.Json
Assembly: System.Data.dll
Source file: JsonValue.rvn

Adds a named child without replacing existing members.

Parameters

Name Type Description
name String Decoded ordinal field name.
value JsonValue Child reference to retain.

Return value

Result<void, JsonError>

Unit or DuplicateField without mutation. Runtime allocation budgets apply; there is no fixed entry cap.