Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Latest commit

 

History

History
127 lines (84 loc) · 2.67 KB

FromCompressedJson.md

File metadata and controls

127 lines (84 loc) · 2.67 KB

JsonUtility.FromCompressedJson method (1 of 4)

Creates an object from compressed JSON.

public static object? FromCompressedJson(byte[] json, Type type)
parameter description
json The compressed JSON.
type The type.

Return Value

The object.

Exceptions

exception condition
JsonReaderException The text is not valid JSON.
JsonSerializationException The JSON cannot be deserialized into the specified type.

See Also


JsonUtility.FromCompressedJson method (2 of 4)

Creates an object from compressed JSON.

public static object? FromCompressedJson(byte[] json, Type type, JsonSettings? settings)
parameter description
json The compressed JSON.
type The type.
settings The settings.

Return Value

The object.

Exceptions

exception condition
JsonReaderException The text is not valid JSON.
JsonSerializationException The JSON cannot be deserialized into the specified type.

See Also


JsonUtility.FromCompressedJson<T> method (3 of 4)

Creates an object from compressed JSON.

public static T FromCompressedJson<T>(byte[] json)
parameter description
T The type of object to create.
json The compressed JSON.

Return Value

The object.

Exceptions

exception condition
JsonReaderException The text is not valid JSON.
JsonSerializationException The JSON cannot be deserialized into the specified type.

See Also


JsonUtility.FromCompressedJson<T> method (4 of 4)

Creates an object from compressed JSON.

public static T FromCompressedJson<T>(byte[] json, JsonSettings? settings)
parameter description
T The type of object to create.
json The compressed JSON.
settings The settings.

Return Value

The object.

Exceptions

exception condition
JsonReaderException The text is not valid JSON.
JsonSerializationException The JSON cannot be deserialized into the specified type.

See Also