Avro C#
 All Classes Namespaces Functions Variables Enumerations Properties
Static Public Member Functions
Avro.JsonHelper Class Reference

List of all members.

Static Public Member Functions

static string GetOptionalString (JToken jtok, string field)
 Retrieves the optional string property value for the given property name from the given JSON object. This throws an exception if property exists but it is not a string.
static string GetRequiredString (JToken jtok, string field)
 Retrieves the required string property value for the given property name from the given JSON object.
static int GetRequiredInteger (JToken jtok, string field)
 Retrieves the required int property value for the given property name from the given JSON object.
static bool GetOptionalBoolean (JToken jtok, string field)
 Retrieves the optional boolean property value for the given property name from the given JSON object.

Member Function Documentation

static bool Avro.JsonHelper.GetOptionalBoolean ( JToken  jtok,
string  field 
) [inline, static]

Retrieves the optional boolean property value for the given property name from the given JSON object.

Parameters:
jtokJSON object to read
fieldproperty name
Returns:
null if property doesn't exist, otherise returns property boolean value
static string Avro.JsonHelper.GetOptionalString ( JToken  jtok,
string  field 
) [inline, static]

Retrieves the optional string property value for the given property name from the given JSON object. This throws an exception if property exists but it is not a string.

Parameters:
jtokJSON object to read
fieldproperty name
Returns:
property value if property exists, null if property doesn't exist in the JSON object
static int Avro.JsonHelper.GetRequiredInteger ( JToken  jtok,
string  field 
) [inline, static]

Retrieves the required int property value for the given property name from the given JSON object.

Parameters:
jtokJSON object to read
fieldproperty name
Returns:
property value
static string Avro.JsonHelper.GetRequiredString ( JToken  jtok,
string  field 
) [inline, static]

Retrieves the required string property value for the given property name from the given JSON object.

Parameters:
jtokJSON object to read
fieldproperty name
Returns:
property value

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Properties