JSON functions

JsonGetBoolean

Declaration

bool JsonGetBoolean(JsonDictionary jsonDictionary, string propertyName)

Description

Returns given property value as boolean.

Supported Runtime Versions

5.0

Parameters Description
jsonDictionary JsonDictionary in which to find given property.
propertyName Name of the property.

Return Value

Boolean value of given property.

JsonGetBoolean

Declaration

bool JsonGetBoolean(JsonArray jsonArray, int index)

Description

Returns item's value as boolean.

Supported Runtime Versions

5.0

Parameters Description
jsonArray JsonArray in which to find given item.
index Index of the item.

Return Value

Boolean value of given item.

JsonGetDateTime

Declaration

DateTime JsonGetDateTime(JsonDictionary jsonDictionary, string propertyName)

Description

Returns given property value as DateTime.

Supported Runtime Versions

5.0

Parameters Description
jsonDictionary JsonDictionary in which to find given property.
propertyName Name of the property.

Return Value

DateTime value of given property.

JsonGetDateTime

Declaration

DateTime JsonGetDateTime(JsonArray jsonArray, int index)

Description

Returns item's value as DateTime.

Supported Runtime Versions

5.0

Parameters Description
jsonArray JsonArray in which to find given item.
index Index of the item.

Return Value

DateTime value of given item.

JsonGetDouble

Declaration

double JsonGetDouble(JsonDictionary jsonDictionary, string propertyName)

Description

Returns given property value as double.

Supported Runtime Versions

5.0

Parameters Description
jsonDictionary JsonDictionary in which to find given property.
propertyName Name of the property.

Return Value

Double value of given property.

JsonGetDouble

Declaration

double JsonGetDouble(JsonArray jsonArray, int index)

Description

Returns item's value as double.

Supported Runtime Versions

5.0

Parameters Description
jsonArray JsonArray in which to find given item.
index Index of the item.

Return Value

Double value of given item.

JsonGetInteger

Declaration

int JsonGetInteger(JsonDictionary jsonDictionary, string propertyName)

Description

Returns given property value as integer.

Supported Runtime Versions

5.0

Parameters Description
jsonDictionary JsonDictionary in which to find given property.
propertyName Name of the property.

Return Value

Integer value of given property.

JsonGetInteger

Declaration

int JsonGetInteger(JsonArray jsonArray, int index)

Description

Returns item's value as integer.

Supported Runtime Versions

5.0

Parameters Description
jsonArray JsonArray in which to find given item.
index Index of the item.

Return Value

Integer value of given item.

JsonGetString

Declaration

string JsonGetString(JsonDictionary jsonDictionary, string propertyName)

Description

Returns given property value as string.

Supported Runtime Versions

5.0

Parameters Description
jsonDictionary JsonDictionary in which to find given property.
propertyName Name of the property.

Return Value

String value of given property.

JsonGetString

Declaration

string JsonGetString(JsonArray jsonArray, int index)

Description

Returns item's value as string.

Supported Runtime Versions

5.0

Parameters Description
jsonArray JsonArray in which to find given item.
index Index of the item.

Return Value

String value of given item.

JsonQueryBoolean

Declaration

bool JsonQueryBoolean(string jsonString, string path)

Description

Queries a boolean value from given json string using defined json path.

Supported Runtime Versions

5.0

Parameters Description
jsonString Json string to query.
path Json path.

Return Value

Found boolean value.

JsonQueryDateTime

Declaration

DateTime JsonQueryDateTime(string jsonString, string path)

Description

Queries a DateTime value from given json string using defined json path.

Supported Runtime Versions

5.0

Parameters Description
jsonString Json string to query.
path Json path.

Return Value

Found DateTime value.

JsonQueryDouble

Declaration

double JsonQueryDouble(string jsonString, string path)

Description

Queries a double value from given json string using defined json path.

Supported Runtime Versions

5.0

Parameters Description
jsonString Json string to query.
path Json path.

Return Value

Found double value.

JsonQueryInteger

Declaration

int JsonQueryInteger(string jsonString, string path)

Description

Queries an integer value from given json string using defined json path.

Supported Runtime Versions

5.0

Parameters Description
jsonString Json string to query.
path Json path.

Return Value

Found integer value.

JsonQueryString

Declaration

string JsonQueryString(string jsonString, string path)

Description

Queries a string value from given json string using defined json path.

Supported Runtime Versions

5.0

Parameters Description
jsonString Json string to query.
path Json path.

Return Value

Found string value.

JsonQueryStringList

Declaration

StringList JsonQueryStringList(string jsonString, string path)

Description

Queries a StringList from given json string using defined json path.

Supported Runtime Versions

5.0

Parameters Description
jsonString Json string to query.
path Json path.

Return Value

StringList with found values.

JsonSerialize

Declaration

string JsonSerialize(bool value)

Description

Serializes given value to a json.

Supported Runtime Versions

5.0

Parameters Description
value Value to serialize.

Return Value

Serialized json string.

JsonSerialize

Declaration

string JsonSerialize(int value)

Description

Serializes given value to a json.

Supported Runtime Versions

5.0

Parameters Description
value Value to serialize.

Return Value

Serialized json string.

JsonSerialize

Declaration

string JsonSerialize(double value)

Description

Serializes given value to a json.

Supported Runtime Versions

5.0

Parameters Description
value Value to serialize.

Return Value

Serialized json string.

JsonSerialize

Declaration

string JsonSerialize(string value)

Description

Serializes given value to a json.

Supported Runtime Versions

5.0

Parameters Description
value Value to serialize.

Return Value

Serialized json string.

JsonSerialize

Declaration

string JsonSerialize(DateTime value)

Description

Serializes given value to a json.

Supported Runtime Versions

5.0

Parameters Description
value Value to serialize.

Return Value

Serialized json string.

JsonSerialize

Declaration

string JsonSerialize(JsonDictionary jsonDictionary)

Description

Serializes given object to a json.

Supported Runtime Versions

5.0

Parameters Description
jsonDictionary JsonDictionary instance to serialize.

Return Value

Serialized json string.

JsonSerialize

Declaration

string JsonSerialize(JsonArray jsonArray)

Description

Serializes given object to a json.

Supported Runtime Versions

5.0

Parameters Description
jsonArray JsonArray instance to serialize.

Return Value

Serialized json string.

JsonSerialize

Declaration

string JsonSerialize(BookExportProfile profile)

Description

Serializes BookExportProfile to a json.

Supported Runtime Versions

5.0

Parameters Description
profile Instance of BookExportProfile.

Return Value

Json string.

JsonSetPropertyValue

Declaration

void JsonSetPropertyValue(JsonDictionary jsonDictionary, string propertyName, string value)

Description

Sets value of given property in given JsonDictionary.

Supported Runtime Versions

5.0

Parameters Description
jsonDictionary JsonDictionary instance in which to set a value.
propertyName Name of the property to set.
value Value to set.

Return Value

Does not return a value.

JsonSetPropertyValue

Declaration

void JsonSetPropertyValue(JsonDictionary jsonDictionary, string propertyName, bool value)

Description

Sets value of given property in given JsonDictionary.

Supported Runtime Versions

5.0

Parameters Description
jsonDictionary JsonDictionary instance in which to set a value.
propertyName Name of the property to set.
value Value to set.

Return Value

Does not return a value.

JsonSetPropertyValue

Declaration

void JsonSetPropertyValue(JsonDictionary jsonDictionary, string propertyName, int value)

Description

Sets value of given property in given JsonDictionary.

Supported Runtime Versions

5.0

Parameters Description
jsonDictionary JsonDictionary instance in which to set a value.
propertyName Name of the property to set.
value Value to set.

Return Value

Does not return a value.

JsonSetPropertyValue

Declaration

void JsonSetPropertyValue(JsonDictionary jsonDictionary, string propertyName, double value)

Description

Sets value of given property in given JsonDictionary.

Supported Runtime Versions

5.0

Parameters Description
jsonDictionary JsonDictionary instance in which to set a value.
propertyName Name of the property to set.
value Value to set.

Return Value

Does not return a value.

JsonSetPropertyValue

Declaration

void JsonSetPropertyValue(JsonDictionary jsonDictionary, string propertyName, DateTime value)

Description

Sets value of given property in given JsonDictionary.

Supported Runtime Versions

5.0

Parameters Description
jsonDictionary JsonDictionary instance in which to set a value.
propertyName Name of the property to set.
value Value to set.

Return Value

Does not return a value.

JsonSetPropertyValue

Declaration

void JsonSetPropertyValue(JsonDictionary jsonDictionary, string propertyName, JsonDictionary value)

Description

Sets value of given property in given JsonDictionary.

Supported Runtime Versions

5.0

Parameters Description
jsonDictionary JsonDictionary instance in which to set a value.
propertyName Name of the property to set.
value Value to set.

Return Value

Does not return a value.

JsonSetPropertyValue

Declaration

void JsonSetPropertyValue(JsonDictionary jsonDictionary, string propertyName, JsonArray value)

Description

Sets value of given property in given JsonDictionary.

Supported Runtime Versions

5.0

Parameters Description
jsonDictionary JsonDictionary instance in which to set a value.
propertyName Name of the property to set.
value Value to set.

Return Value

Does not return a value.