Show / Hide Table of Contents

Class JsonUtil

JSONのユーティリティクラス

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[])

JSONをデシリアライズする

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

デシリアライズするJSONバイト列

Returns
Type Description
Type

デシリアライズ結果

Type Parameters
Name Description
Type

デシリアライズする型

Deserialize<Type>(String)

JSONをデシリアライズする

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

デシリアライズするJSON文字列

Returns
Type Description
Type

デシリアライズ結果

Type Parameters
Name Description
Type

デシリアライズする型

Serialize<Type>(Type)

Type型のオブジェクトをJSON文字列にシリアライズする

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

シリアライズする値

Returns
Type Description
Byte[]

シリアライズ結果のJSONバイト列

Type Parameters
Name Description
Type

シリアライズする型

In This Article
Back to top Generated by DocFX