JsonUtility.FromJsonTextReader method (1 of 4)

Creates an object from JSON.

public static object? FromJsonTextReader(TextReader textReader, Type type)
parameter description
textReader The 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.FromJsonTextReader method (2 of 4)

Creates an object from JSON.

public static object? FromJsonTextReader(TextReader textReader, Type type, JsonSettings? settings)
parameter description
textReader The 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.FromJsonTextReader<T> method (3 of 4)

Creates an object from JSON.

public static T FromJsonTextReader<T>(TextReader textReader)
parameter description
textReader The 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.FromJsonTextReader<T> method (4 of 4)

Creates an object from JSON.

public static T FromJsonTextReader<T>(TextReader textReader, JsonSettings? settings)
parameter description
textReader The 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