Json
public static abstract sealed class Json A convenience JSON helper that handles Resource types for you.
Methods
static Object Deserialize(String source, Type t) Try to deserialize given source to given type.
static T Deserialize(String source) Try to deserialize given source to given type.
static T Deserialize(Utf8JsonReader reader) Deserialize from a Utf8JsonReader to given type, using our engine specific options.
static Object Deserialize(Utf8JsonReader reader, Type t) Deserialize from a Utf8JsonReader to given type, using our engine specific options.
static Boolean TryDeserialize(String source, Type t, Object obj) Try to deserialize given source to given type. Return true if it was a success
static Boolean TryDeserialize(String source, T obj) Try to deserialize given source to given type. Return true if it was a success
static String Serialize(Object source) Serialize an object.
static Void Serialize(Utf8JsonWriter writer, T target) Serialize to a Utf8JsonWriter using our engine specific options.
static Void Serialize(Utf8JsonWriter writer, Object target, Type inputType) Serialize to a Utf8JsonWriter using our engine specific options.
static JsonObject ParseToJsonObject(String json) Parse some Json to a JsonObject
static JsonObject ParseToJsonObject(Utf8JsonReader reader) Parse some Json to a JsonNode
static JsonNode ToNode(Object obj) Serialize a single object to a JsonNode
static JsonNode ToNode(Object obj, Type type) Serialize a single object to a JsonNode with the given expected type
static Object FromNode(JsonNode node, Type type) Deserialize a single object to a type
static T FromNode(JsonNode node) Deserialize a single object to a type
static JsonNode WalkJsonTree(JsonNode node, Func<String, JsonValue, JsonNode> onValue, Func<String, JsonObject, JsonObject> onObject = null) static Patch CalculateDifferences(JsonObject oldRoot, JsonObject newRoot, HashSet<TrackedObjectDefinition> definitions) static JsonObject ApplyPatch(JsonObject sourceRoot, Patch patch, HashSet<TrackedObjectDefinition> definitions)