Creates an object from JSON.
public static object? FromJsonTextReader(TextReader textReader, Type type)
| parameter | description |
|---|---|
| textReader | The 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 JSON.
public static object? FromJsonTextReader(TextReader textReader, Type type, JsonSettings? settings)
| parameter | description |
|---|---|
| textReader | The 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 JSON.
public static T FromJsonTextReader<T>(TextReader textReader)
| parameter | description |
|---|---|
| textReader | The 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 JSON.
public static T FromJsonTextReader<T>(TextReader textReader, JsonSettings? settings)
| parameter | description |
|---|---|
| textReader | The 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. |