API ReferenceSandbox
Jsonclass
A convenience JSON helper that handles `Sandbox.Resource` types for you.
object→Json
Methods18
Showing 18 methods
public static System.Text.Json.Nodes.JsonObject ApplyPatch(System.Text.Json.Nodes.JsonObject sourceRoot, Sandbox.Json.Patch patch, System.Collections.Generic.HashSet`1<Sandbox.Json.TrackedObjectDefinition> definitions)
| Parameter | Type | Description |
|---|---|---|
| sourceRoot | JsonObject | — |
| patch | Patch | — |
| definitions | HashSet<TrackedObjectDefinition> | — |
Returns:
JsonObject—public static Sandbox.Json.Patch CalculateDifferences(System.Text.Json.Nodes.JsonObject oldRoot, System.Text.Json.Nodes.JsonObject newRoot, System.Collections.Generic.HashSet`1<Sandbox.Json.TrackedObjectDefinition> definitions)
| Parameter | Type | Description |
|---|---|---|
| oldRoot | JsonObject | — |
| newRoot | JsonObject | — |
| definitions | HashSet<TrackedObjectDefinition> | — |
public static System.Text.Json.Nodes.JsonNode WalkJsonTree(System.Text.Json.Nodes.JsonNode node, System.Func`3<string,System.Text.Json.Nodes.JsonValue,System.Text.Json.Nodes.JsonNode> onValue, System.Func`3<string,System.Text.Json.Nodes.JsonObject,System.Text.Json.Nodes.JsonObject> onObject = null)
| Parameter | Type | Description |
|---|---|---|
| node | JsonNode | — |
| onValue | Func<string,JsonValue,JsonNode> | — |
| onObject = null | Func<string,JsonObject,JsonObject> | — |
Returns:
JsonNode—No results match this filter.