s&box docs

public static abstract sealed class Sandbox.Json

A convenience JSON helper that handles `Sandbox.Resource` types for you.

Broader workflow and conceptual references connected to this API.

Methods

Showing 18 methods

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)

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)

Parameters

  • onObject: Default: null

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.Json

On this page

Methodspublic 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)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)public static System.Object Deserialize(System.String source, System.Type t)public static System.Object Deserialize(System.Text.Json.Utf8JsonReader reader, System.Type t)public static T Deserialize(System.String source)public static T Deserialize(System.Text.Json.Utf8JsonReader reader)public static System.Object FromNode(System.Text.Json.Nodes.JsonNode node, System.Type type)public static T FromNode(System.Text.Json.Nodes.JsonNode node)public static System.Text.Json.Nodes.JsonObject ParseToJsonObject(System.String json)public static System.Text.Json.Nodes.JsonObject ParseToJsonObject(System.Text.Json.Utf8JsonReader reader)public static System.String Serialize(System.Object source)public static System.Void Serialize(System.Text.Json.Utf8JsonWriter writer, System.Object target, System.Type inputType)public static System.Void Serialize(System.Text.Json.Utf8JsonWriter writer, T target)public static System.Text.Json.Nodes.JsonNode ToNode(System.Object obj, System.Type type)public static System.Text.Json.Nodes.JsonNode ToNode(System.Object obj)public static System.Boolean TryDeserialize(System.String source, System.Type t, System.Object obj)public static System.Boolean TryDeserialize(System.String source, T obj)public static System.Text.Json.Nodes.JsonNode WalkJsonTree(System.Text.Json.Nodes.JsonNode node, System.Func`3<System.String,System.Text.Json.Nodes.JsonValue,System.Text.Json.Nodes.JsonNode> onValue, System.Func`3<System.String,System.Text.Json.Nodes.JsonObject,System.Text.Json.Nodes.JsonObject> onObject = null)Metadata