System.Text.Json.Nodes
5 wrapped types. Load them with using { "System.Text.Json.Nodes" }. Click a class to open it.
JsonArray class sealed · extends JsonNode
System.Text.Json.Nodes.JsonArray · assembly System.Text.Json
Implements: IEnumerable
Constructors
new JsonArray(JsonNodeOptions? options = …) |
new JsonArray(JsonNodeOptions options, JsonNode[] items) |
new JsonArray(JsonNodeOptions options, ReadOnlySpan<JsonNode> items) |
new JsonArray(JsonNode[] items) |
new JsonArray(ReadOnlySpan<JsonNode> items) |
Ring: new JsonArray(args) uses one constructor; the others are chosen by the parameter names: new JsonArray().@New([ :param = value ]) or dnNew("JsonArray",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Count | int | read | o.Count |
Indexer
o.Item(int index) → JsonNode · o.SetItem(index,value)
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Add | Add(p1) | void Add<T>(T value)void Add(JsonNode item) |
Clear | callMethod("Clear",[]) | void Clear() |
Contains | Contains(p1) | bool Contains(JsonNode item) |
Create | Create([ :element = …, :options = … ]) | static JsonArray Create(JsonElement element, JsonNodeOptions? options = …) |
GetEnumerator | callMethod("GetEnumerator",[]) | IEnumerator<JsonNode> GetEnumerator() |
GetValues | GetValues(NULL) | IEnumerable<T> GetValues<T>() |
IndexOf | IndexOf(p1) | int IndexOf(JsonNode item) |
Insert | Insert(p1,p2) | void Insert(int index, JsonNode item) |
Remove | Remove(p1) | bool Remove(JsonNode item) |
RemoveAt | callMethod("RemoveAt",[p1]) | void RemoveAt(int index) |
WriteTo | callMethod("WriteTo",[p1,p2]) | void WriteTo(Utf8JsonWriter writer, JsonSerializerOptions options = …) |
Members of the base class are inherited.
JsonNode class abstract
System.Text.Json.Nodes.JsonNode · assembly System.Text.Json
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Options | JsonNodeOptions? | read | o.Options |
Parent | JsonNode | read | o.Parent |
Root | JsonNode | read | o.Root |
Indexer
o.Item(int index) → JsonNode · o.SetItem(index,value)
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
AsArray | callMethod("AsArray",[]) | JsonArray AsArray() |
AsObject | callMethod("AsObject",[]) | JsonObject AsObject() |
AsValue | callMethod("AsValue",[]) | JsonValue AsValue() |
DeepClone | callMethod("DeepClone",[]) | JsonNode DeepClone() |
DeepEquals | DeepEquals(p1,p2) | static bool DeepEquals(JsonNode node1, JsonNode node2) |
GetElementIndex | callMethod("GetElementIndex",[]) | int GetElementIndex() |
GetPath | callMethod("GetPath",[]) | string GetPath() |
GetPropertyName | callMethod("GetPropertyName",[]) | string GetPropertyName() |
GetValue | GetValue(NULL) | T GetValue<T>() |
GetValueKind | callMethod("GetValueKind",[]) | JsonValueKind GetValueKind() |
Parse | Parse([ :reader = …, :nodeOptions = … ])Parse([ :json = …, :nodeOptions = …, :documentOptions = … ])Parse([ :utf8Json = …, :nodeOptions = …, :documentOptions = … ]) | static JsonNode Parse(ref Utf8JsonReader reader, JsonNodeOptions? nodeOptions = …)static JsonNode Parse(string json, JsonNodeOptions? nodeOptions = …, JsonDocumentOptions documentOptions = …)static JsonNode Parse(ReadOnlySpan<byte> utf8Json, JsonNodeOptions? nodeOptions = …, JsonDocumentOptions documentOptions = …)static JsonNode Parse(Stream utf8Json, JsonNodeOptions? nodeOptions = …, JsonDocumentOptions documentOptions = …) |
ParseAsync | ParseAsync([ :utf8Json = …, :nodeOptions = …, :documentOptions = …, :cancellationToken = … ]) | static Task<JsonNode> ParseAsync(Stream utf8Json, JsonNodeOptions? nodeOptions = …, JsonDocumentOptions documentOptions = …, CancellationToken cancellationToken = …) |
ReplaceWith | ReplaceWith(p1) | void ReplaceWith<T>(T value) |
ToJsonString | callMethod("ToJsonString",[p1]) | string ToJsonString(JsonSerializerOptions options = …) |
ToString | callMethod("ToString",[]) | string ToString() |
WriteTo | callMethod("WriteTo",[p1,p2]) | void WriteTo(Utf8JsonWriter writer, JsonSerializerOptions options = …) |
JsonNodeOptions struct
System.Text.Json.Nodes.JsonNodeOptions · assembly System.Text.Json
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
PropertyNameCaseInsensitive | bool | read, write | o.PropertyNameCaseInsensitive o.PropertyNameCaseInsensitive = v |
JsonObject class sealed · extends JsonNode
System.Text.Json.Nodes.JsonObject · assembly System.Text.Json
Implements: IEnumerable
Constructors
new JsonObject(JsonNodeOptions? options = …) |
new JsonObject(IEnumerable<KeyValuePair<string, JsonNode>> properties, JsonNodeOptions? options = …) |
Ring: new JsonObject(args) uses one constructor; the others are chosen by the parameter names: new JsonObject().@New([ :param = value ]) or dnNew("JsonObject",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Count | int | read | o.Count |
Indexer
o.Item(int index) → JsonNode · o.SetItem(index,value)
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Add | callMethod("Add",[p1])callMethod("Add",[p1,p2]) | void Add(string propertyName, JsonNode value)void Add(KeyValuePair<string, JsonNode> property) |
Clear | callMethod("Clear",[]) | void Clear() |
ContainsKey | callMethod("ContainsKey",[p1]) | bool ContainsKey(string propertyName) |
Create | Create([ :element = …, :options = … ]) | static JsonObject Create(JsonElement element, JsonNodeOptions? options = …) |
GetAt | callMethod("GetAt",[p1]) | KeyValuePair<string, JsonNode> GetAt(int index) |
GetEnumerator | callMethod("GetEnumerator",[]) | IEnumerator<KeyValuePair<string, JsonNode>> GetEnumerator() |
IndexOf | callMethod("IndexOf",[p1]) | int IndexOf(string propertyName) |
Insert | Insert(p1,p2,p3) | void Insert(int index, string propertyName, JsonNode value) |
Remove | callMethod("Remove",[p1]) | bool Remove(string propertyName) |
RemoveAt | callMethod("RemoveAt",[p1]) | void RemoveAt(int index) |
SetAt | SetAt([ :index = …, :value = … ])SetAt([ :index = …, :propertyName = …, :value = … ]) | void SetAt(int index, string propertyName, JsonNode value)void SetAt(int index, JsonNode value) |
TryGetPropertyValue | TryGetPropertyValue(p1) | bool TryGetPropertyValue(string propertyName, out JsonNode jsonNode) |
WriteTo | callMethod("WriteTo",[p1,p2]) | void WriteTo(Utf8JsonWriter writer, JsonSerializerOptions options = …) |
Members of the base class are inherited.
JsonValue class abstract · extends JsonNode
System.Text.Json.Nodes.JsonValue · assembly System.Text.Json
Indexer
o.Item(int index) → JsonNode · o.SetItem(index,value)
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Create | Create([ :value = …, :options = … ])Create([ :value = …, :jsonTypeInfo = …, :options = … ]) | static JsonValue Create(bool value, JsonNodeOptions? options = …)static JsonValue Create(bool? value, JsonNodeOptions? options = …)static JsonValue Create(byte value, JsonNodeOptions? options = …)static JsonValue Create(byte? value, JsonNodeOptions? options = …)static JsonValue Create(char value, JsonNodeOptions? options = …)static JsonValue Create(char? value, JsonNodeOptions? options = …)static JsonValue Create(DateTime value, JsonNodeOptions? options = …)static JsonValue Create(DateTime? value, JsonNodeOptions? options = …)static JsonValue Create(DateTimeOffset value, JsonNodeOptions? options = …)static JsonValue Create(DateTimeOffset? value, JsonNodeOptions? options = …)static JsonValue Create(decimal value, JsonNodeOptions? options = …)static JsonValue Create(decimal? value, JsonNodeOptions? options = …)static JsonValue Create(double value, JsonNodeOptions? options = …)static JsonValue Create(double? value, JsonNodeOptions? options = …)static JsonValue Create(Guid value, JsonNodeOptions? options = …)static JsonValue Create(Guid? value, JsonNodeOptions? options = …)static JsonValue Create(short value, JsonNodeOptions? options = …)static JsonValue Create(short? value, JsonNodeOptions? options = …)static JsonValue Create(int value, JsonNodeOptions? options = …)static JsonValue Create(int? value, JsonNodeOptions? options = …)static JsonValue Create(long value, JsonNodeOptions? options = …)static JsonValue Create(long? value, JsonNodeOptions? options = …)static JsonValue Create(sbyte value, JsonNodeOptions? options = …)static JsonValue Create(sbyte? value, JsonNodeOptions? options = …)static JsonValue Create(float value, JsonNodeOptions? options = …)static JsonValue Create(float? value, JsonNodeOptions? options = …)static JsonValue Create(string value, JsonNodeOptions? options = …)static JsonValue Create(ushort value, JsonNodeOptions? options = …)static JsonValue Create(ushort? value, JsonNodeOptions? options = …)static JsonValue Create(uint value, JsonNodeOptions? options = …)static JsonValue Create(uint? value, JsonNodeOptions? options = …)static JsonValue Create(ulong value, JsonNodeOptions? options = …)static JsonValue Create(ulong? value, JsonNodeOptions? options = …)static JsonValue Create(JsonElement value, JsonNodeOptions? options = …)static JsonValue Create(JsonElement? value, JsonNodeOptions? options = …)static JsonValue Create<T>(T value, JsonNodeOptions? options = …)static JsonValue Create<T>(T value, JsonTypeInfo<T> jsonTypeInfo, JsonNodeOptions? options = …) |
TryGetValue | TryGetValue() | bool TryGetValue<T>(out T value) |
Members of the base class are inherited.