Creates an object from compressed JSON.
public static object? FromCompressedJson(byte[] json, Type type)
parameter | description |
---|---|
json | The compressed JSON. |
type | The type. |
The object.
exception | condition |
---|---|
JsonReaderException | The text is not valid JSON. |
JsonSerializationException | The JSON cannot be deserialized into the specified type. |
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. |
The object.
exception | condition |
---|---|
JsonReaderException | The text is not valid JSON. |
JsonSerializationException | The JSON cannot be deserialized into the specified type. |
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. |
The object.
exception | condition |
---|---|
JsonReaderException | The text is not valid JSON. |
JsonSerializationException | The JSON cannot be deserialized into the specified type. |
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. |
The object.
exception | condition |
---|---|
JsonReaderException | The text is not valid JSON. |
JsonSerializationException | The JSON cannot be deserialized into the specified type. |