API reference
API reference
Select your platform
No SDKs available
No versions available

JsonConvert Class

Class for decoding

Overview

Static Fields

Static Public Member Functions

DeserializeToken
( string jsonString )
Safely parse a string into a json node
static async Task< WitResponseNode >
DeserializeTokenAsync
( string jsonString )
Safely parse a string into a json node async
static IN_TYPE
DeserializeObject< IN_TYPE >
( string jsonString,
JsonConverter [] customConverters,
bool suppressWarnings )
Generate a default instance, deserialize and return
static async Task< IN_TYPE >
DeserializeObjectAsync< IN_TYPE >
( string jsonString,
JsonConverter [] customConverters,
bool suppressWarnings )
Generate a default instance, deserialize and return async
static IN_TYPE
DeserializeObject< IN_TYPE >
( WitResponseNode jsonToken,
JsonConverter [] customConverters,
bool suppressWarnings )
Generate a default instance, deserialize and return
static async Task< IN_TYPE >
DeserializeObjectAsync< IN_TYPE >
( WitResponseNode jsonToken,
JsonConverter [] customConverters,
bool suppressWarnings )
Generate a default instance, deserialize and return async
static IN_TYPE
DeserializeIntoObject< IN_TYPE >
( IN_TYPE instance,
string jsonString,
JsonConverter [] customConverters,
bool suppressWarnings )
Deserialize json string into an existing instance
static async Task< IN_TYPE >
DeserializeIntoObjectAsync< IN_TYPE >
( IN_TYPE instance,
string jsonString,
JsonConverter [] customConverters,
bool suppressWarnings )
Deserialize json string into an existing instance async
static IN_TYPE
DeserializeIntoObject< IN_TYPE >
( IN_TYPE instance,
WitResponseNode jsonToken,
JsonConverter [] customConverters,
bool suppressWarnings )
Deserialize json string into an existing instance
static async Task< IN_TYPE >
DeserializeIntoObjectAsync< IN_TYPE >
( IN_TYPE instance,
WitResponseNode jsonToken,
JsonConverter [] customConverters,
bool suppressWarnings )
Deserialize json string into an existing instance async
static ITEM_TYPE []
DeserializeArray< ITEM_TYPE >
( object oldArray,
WitResponseNode jsonToken,
StringBuilder log,
JsonConverter [] customConverters )
Deserialize a specific array
static string
SerializeObject< TFromType >
( TFromType inObject,
JsonConverter [] customConverters,
bool suppressWarnings )
Serializes an object into a json string
static async Task< string >
SerializeObjectAsync< TFromType >
( TFromType inObject,
JsonConverter [] customConverters,
bool suppressWarnings )
Serializes an object into a json string asynchronously
SerializeToken< TFromType >
( TFromType inObject,
JsonConverter [] customConverters,
bool suppressWarnings )
Serializes an object into a WitResponseNode
static async Task< WitResponseNode >
SerializeTokenAsync< TFromType >
( TFromType inObject,
JsonConverter [] customConverters,
bool suppressWarnings )
Serializes an object into a WitResponseNode

Details

Public Statics

JsonConverter [] Meta.WitAi.Json.JsonConvert.DefaultConverters
No description available.

Static Member Functions

static WitResponseNode Meta.WitAi.Json.JsonConvert.DeserializeToken
( string jsonString )
Safely parse a string into a json node
Parameters
jsonString
Json parseable string
Returns
Returns json node for easy decoding
static async Task<WitResponseNode> Meta.WitAi.Json.JsonConvert.DeserializeTokenAsync
( string jsonString )
Safely parse a string into a json node async
Parameters
jsonString
Json parseable string
static IN_TYPE Meta.WitAi.Json.JsonConvert.DeserializeObject< IN_TYPE >
( string jsonString,
JsonConverter [] customConverters,
bool suppressWarnings )
Generate a default instance, deserialize and return
static async Task<IN_TYPE> Meta.WitAi.Json.JsonConvert.DeserializeObjectAsync< IN_TYPE >
( string jsonString,
JsonConverter [] customConverters,
bool suppressWarnings )
Generate a default instance, deserialize and return async
static IN_TYPE Meta.WitAi.Json.JsonConvert.DeserializeObject< IN_TYPE >
( WitResponseNode jsonToken,
JsonConverter [] customConverters,
bool suppressWarnings )
Generate a default instance, deserialize and return
static async Task<IN_TYPE> Meta.WitAi.Json.JsonConvert.DeserializeObjectAsync< IN_TYPE >
( WitResponseNode jsonToken,
JsonConverter [] customConverters,
bool suppressWarnings )
Generate a default instance, deserialize and return async
static IN_TYPE Meta.WitAi.Json.JsonConvert.DeserializeIntoObject< IN_TYPE >
( IN_TYPE instance,
string jsonString,
JsonConverter [] customConverters,
bool suppressWarnings )
Deserialize json string into an existing instance
static async Task<IN_TYPE> Meta.WitAi.Json.JsonConvert.DeserializeIntoObjectAsync< IN_TYPE >
( IN_TYPE instance,
string jsonString,
JsonConverter [] customConverters,
bool suppressWarnings )
Deserialize json string into an existing instance async
static IN_TYPE Meta.WitAi.Json.JsonConvert.DeserializeIntoObject< IN_TYPE >
( IN_TYPE instance,
WitResponseNode jsonToken,
JsonConverter [] customConverters,
bool suppressWarnings )
Deserialize json string into an existing instance
static async Task<IN_TYPE> Meta.WitAi.Json.JsonConvert.DeserializeIntoObjectAsync< IN_TYPE >
( IN_TYPE instance,
WitResponseNode jsonToken,
JsonConverter [] customConverters,
bool suppressWarnings )
Deserialize json string into an existing instance async
static ITEM_TYPE [] Meta.WitAi.Json.JsonConvert.DeserializeArray< ITEM_TYPE >
( object oldArray,
WitResponseNode jsonToken,
StringBuilder log,
JsonConverter [] customConverters )
Deserialize a specific array
Parameters
nodeoldValuelog
Others
NODE_TYPE
Returns
static string Meta.WitAi.Json.JsonConvert.SerializeObject< TFromType >
( TFromType inObject,
JsonConverter [] customConverters,
bool suppressWarnings )
Serializes an object into a json string
Parameters
inObject
The object to be serialized into json
customConverters
Custom json conversion interfaces
suppressWarnings
If true, all warnings will be ignored
Others
TFromType
The type of object to be decoded
Returns
A json string corresponding to the inObject
static async Task<string> Meta.WitAi.Json.JsonConvert.SerializeObjectAsync< TFromType >
( TFromType inObject,
JsonConverter [] customConverters,
bool suppressWarnings )
Serializes an object into a json string asynchronously
Parameters
inObject
The object to be serialized into json
customConverters
Custom json conversion interfaces
suppressWarnings
If true, all warnings will be ignored
Others
TFromType
The type of object to be decoded
Returns
A string after waiting for the serialization
static WitResponseNode Meta.WitAi.Json.JsonConvert.SerializeToken< TFromType >
( TFromType inObject,
JsonConverter [] customConverters,
bool suppressWarnings )
Serializes an object into a WitResponseNode
Parameters
inObject
The object to be serialized into json
customConverters
Custom json conversion interfaces
suppressWarnings
If true, all warnings will be ignored
Others
TFromType
The type of object to be decoded
Returns
A json WitResponseNode corresponding to the inObject, or null in case of errors
static async Task<WitResponseNode> Meta.WitAi.Json.JsonConvert.SerializeTokenAsync< TFromType >
( TFromType inObject,
JsonConverter [] customConverters,
bool suppressWarnings )
Serializes an object into a WitResponseNode
Parameters
inObject
The object to be serialized into json
customConverters
Custom json conversion interfaces
suppressWarnings
If true, all warnings will be ignored
Others
TFromType
The type of object to be decoded
Returns
A json WitResponseNode corresponding to the inObject, or null in case of errors
Did you find this page helpful?
Thumbs up icon
Thumbs down icon