Codeunit "JSON Management"
ID 5459
Namespace: System.Text
Methods
InitializeCollection
procedure InitializeCollection(JSONString: Text)
Parameters
Name |
Type |
Description |
JSONString
|
Text
|
|
InitializeEmptyCollection
procedure InitializeEmptyCollection()
InitializeObject
procedure InitializeObject(JSONString: Text)
Parameters
Name |
Type |
Description |
JSONString
|
Text
|
|
InitializeEmptyObject
procedure InitializeEmptyObject()
InitializeFromString
procedure InitializeFromString(JSONString: Text): Boolean
Parameters
Name |
Type |
Description |
JSONString
|
Text
|
|
Returns
GetObjectFromCollectionByIndex
procedure GetObjectFromCollectionByIndex(var Object: Text, Index: Integer): Boolean
Parameters
Name |
Type |
Description |
Object
|
Text
|
|
Index
|
Integer
|
|
Returns
GetJObjectFromCollectionByIndex
procedure GetJObjectFromCollectionByIndex(JObject: __MissingTypeSymbol__, Index: Integer): Boolean
Parameters
Name |
Type |
Description |
JObject
|
__MissingTypeSymbol__
|
|
Index
|
Integer
|
|
Returns
GetPropertyValueByName
procedure GetPropertyValueByName(propertyName: Text, var value: Variant): Boolean
Parameters
Name |
Type |
Description |
propertyName
|
Text
|
|
value
|
Variant
|
|
Returns
GetPropertyValueFromJObjectByPath
procedure GetPropertyValueFromJObjectByPath(JObject: __MissingTypeSymbol__, fullyQualifiedPropertyName: Text, var value: Variant): Boolean
Parameters
Name |
Type |
Description |
JObject
|
__MissingTypeSymbol__
|
|
fullyQualifiedPropertyName
|
Text
|
|
value
|
Variant
|
|
Returns
GetStringPropertyValueByName
procedure GetStringPropertyValueByName(propertyName: Text, var value: Text): Boolean
Parameters
Name |
Type |
Description |
propertyName
|
Text
|
|
value
|
Text
|
|
Returns
GetArrayPropertyValueAsStringByName
procedure GetArrayPropertyValueAsStringByName(propertyName: Text, var value: Text): Boolean
Parameters
Name |
Type |
Description |
propertyName
|
Text
|
|
value
|
Text
|
|
Returns
GetCollectionCount
procedure GetCollectionCount(): Integer
Returns
WriteCollectionToString
procedure WriteCollectionToString(): Text
Returns
WriteObjectToString
procedure WriteObjectToString(): Text
Returns
FormatDecimalToJSONProperty
procedure FormatDecimalToJSONProperty(Value: Decimal, PropertyName: Text): Text
Parameters
Name |
Type |
Description |
Value
|
Decimal
|
|
PropertyName
|
Text
|
|
Returns
XMLTextToJSONText
procedure XMLTextToJSONText(Xml: Text): Text
Parameters
Name |
Type |
Description |
Xml
|
Text
|
|
Returns
JSONTextToXMLText
procedure JSONTextToXMLText(Json: Text, DocumentElementName: Text): Text
Parameters
Name |
Type |
Description |
Json
|
Text
|
|
DocumentElementName
|
Text
|
|
Returns
SetValue
procedure SetValue(Path: Text, Value: Variant)
Parameters
Name |
Type |
Description |
Path
|
Text
|
|
Value
|
Variant
|
|
GetValue
procedure GetValue(Path: Text): Text
Parameters
Name |
Type |
Description |
Path
|
Text
|
|
Returns
GetValueAndSetToRecFieldNo
procedure GetValueAndSetToRecFieldNo(RecordRef: RecordRef, PropertyPath: Text, FieldNo: Integer): Boolean
Parameters
Name |
Type |
Description |
RecordRef
|
RecordRef
|
|
PropertyPath
|
Text
|
|
FieldNo
|
Integer
|
|
Returns
HasValue
procedure HasValue(Name: Text, Value: Text): Boolean
Parameters
Name |
Type |
Description |
Name
|
Text
|
|
Value
|
Text
|
|
Returns
AddArrayValue
procedure AddArrayValue(Value: Variant)
Parameters
Name |
Type |
Description |
Value
|
Variant
|
|
AddJson
procedure AddJson(Path: Text, JsonString: Text)
Parameters
Name |
Type |
Description |
Path
|
Text
|
|
JsonString
|
Text
|
|
AddJsonArray
procedure AddJsonArray(Path: Text, JsonArrayString: Text)
Parameters
Name |
Type |
Description |
Path
|
Text
|
|
JsonArrayString
|
Text
|
|
SelectTokenFromRoot
procedure SelectTokenFromRoot(Path: Text): Boolean
Parameters
Name |
Type |
Description |
Path
|
Text
|
|
Returns
ReadProperties
procedure ReadProperties(): Boolean
Returns
GetNextProperty
procedure GetNextProperty(var Name: Text, var Value: Text): Boolean
Parameters
Name |
Type |
Description |
Name
|
Text
|
|
Value
|
Text
|
|
Returns
SelectItemFromRoot
procedure SelectItemFromRoot(Path: Text, Index: Integer): Boolean
Parameters
Name |
Type |
Description |
Path
|
Text
|
|
Index
|
Integer
|
|
Returns
GetCount
procedure GetCount(): Integer
Returns
SetJsonWebResponseError
procedure SetJsonWebResponseError(var JsonString: Text, code: Text, name: Text, description: Text)
Parameters
Name |
Type |
Description |
JsonString
|
Text
|
|
code
|
Text
|
|
name
|
Text
|
|
description
|
Text
|
|
GetJsonWebResponseError
procedure GetJsonWebResponseError(JsonString: Text, var code: Text, var name: Text, var description: Text): Boolean
Parameters
Name |
Type |
Description |
JsonString
|
Text
|
|
code
|
Text
|
|
name
|
Text
|
|
description
|
Text
|
|
Returns
See also