JsonUtils

Inclusion code:

Service Deployment

Port Name

Location

Protocol

Interfaces

JsonUtils

-

-

JsonUtilsInterface

List of Available Interfaces

JsonUtilsInterface

Operation Name

Input Type

Output Type

Faults

getJsonString

GetJsonStringRequest

GetJsonStringResponse

JSONCreationError( undefined )

getJsonValue

GetJsonValueRequest

GetJsonValueResponse

JSONCreationError( undefined )

Operation Description

getJsonString

Operation documentation: Returns the value converted into a JSON string

Each child value corresponds to an attribute, the base values are saved as the default values (attribute "$" or singular value), the "_" helper childs disappear (e.g. a._[i]._[j] -> a[i][j]), the rest gets converted recursively

Invocation template:

getJsonString@JsonUtils( request )( response )

Request type

Type: GetJsonStringRequest

Type documentation: no documentation provided

type GetJsonStringRequest: undefined

Response type

Type: GetJsonStringResponse

Type documentation: no documentation provided

type GetJsonStringResponse: string

Possible faults thrown

Fault JSONCreationError with type undefined

Fault-handling install template:

install ( JSONCreationError => /* error-handling code */ )

getJsonValue

Operation documentation: Returns the JSON string converted into a value

Each attribute corresponds to a child value, the default values (attribute "$" or singular value) are saved as the base values, nested arrays get mapped with the "_" helper childs (e.g. a[i][j] -> a._[i]._[j]), the rest gets converted recursively

Invocation template:

getJsonValue@JsonUtils( request )( response )

Request type

Type: GetJsonValueRequest

Type documentation: no documentation provided

type GetJsonValueRequest: any {
.strictEncoding?: bool
.charset?: string
}

Response type

Type: GetJsonValueResponse

Type documentation: no documentation provided

type GetJsonValueResponse: undefined

Possible faults thrown

Fault JSONCreationError with type undefined

Fault-handling install template:

install ( JSONCreationError => /* error-handling code */ )

Subtypes

GetJsonStringRequest

type GetJsonStringRequest: undefined

GetJsonValueResponse

type GetJsonValueResponse: undefined