class Json
A convenience JSON helper that handles types for you.
public static object Deserialize( string source, Type t )
Try to deserialize given source to given type.
public static bool TryDeserialize( string source, Type t, ref object obj )
Try to deserialize given source to given type. Return true if it was a success
public static string Serialize( object source )
Serialize an object.
public static JsonObject ParseToJsonObject( string json )
Parse some Json to a JsonObject
public static JsonObject ParseToJsonObject( ref Utf8JsonReader reader )
Parse some Json to a JsonNode
public static JsonNode ToNode( object obj )
Serialize a single object to a JsonNode
public static JsonNode ToNode( object obj, Type type )
Serialize a single object to a JsonNode with the given expected type
public static object FromNode( JsonNode node, Type type )
Deserialize a single object to a type
public static T Deserialize( string source )
😔 No documentation found.
public static bool TryDeserialize( string source, ref T obj )
😔 No documentation found.
public static T FromNode( JsonNode node )
😔 No documentation found.
public static JsonNode WalkJsonTree( JsonNode node, Func<string,JsonValue,JsonNode> onValue, Func<string,JsonObject,JsonObject> onObject = null )
😔 No documentation found.
public Type GetType( )
😔 No documentation found.
public string ToString( )
😔 No documentation found.
public bool Equals( object obj )
😔 No documentation found.
public int GetHashCode( )
😔 No documentation found.