Show / Hide Table of Contents

Class JsonUtil

JSON utility class

Inheritance
Object
JsonUtil
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Pixiv.VroidSdk.Utility
Assembly: Pixiv.VroidSdk.dll
Syntax
public static class JsonUtil

Methods

Deserialize<Type>(Byte[])

Deserialize JSON

Declaration
public static Type Deserialize<Type>(byte[] jsonBinary)
Parameters
Type Name Description
Byte[] jsonBinary

JSON byte string to be deserialized

Returns
Type Description
Type

Deserialize result

Type Parameters
Name Description
Type

Deserialize type

Deserialize<Type>(String)

Deserialize JSON

Declaration
public static Type Deserialize<Type>(string json)
Parameters
Type Name Description
String json

JSON byte string to be deserialized

Returns
Type Description
Type

Deserialize result

Type Parameters
Name Description
Type

Deserialize type

Serialize<Type>(Type)

Serialize Type-typed object to JSON string

Declaration
public static byte[] Serialize<Type>(Type value)
Parameters
Type Name Description
Type value

Value to be serialized

Returns
Type Description
Byte[]

Serialization result JSON byte string

Type Parameters
Name Description
Type

Type to be serialized

In This Article
Back to top Generated by DocFX