JolieDoc for Port JsonUtils

From file json_utils.iol

Port Name Location Protocol
JsonUtils

List of the available interfaces


Interface JsonUtilsInterface

Heading Input type Output type Faults
getJsonString GetJsonStringRequest
GetJsonStringResponse
JSONCreationError, 
getJsonValue GetJsonValueRequest
GetJsonValueResponse
JSONCreationError, 

Operation list

getJsonString

getJsonString( GetJsonStringRequest )( GetJsonStringResponse )
 throws


JSONCreationError

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

getJsonValue

getJsonValue( GetJsonValueRequest )( GetJsonValueResponse )
 throws


JSONCreationError

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


Message type list

GetJsonStringRequest

type GetJsonStringRequest: undefined

GetJsonStringResponse

type GetJsonStringResponse: string

GetJsonValueRequest

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

GetJsonValueResponse

type GetJsonValueResponse: undefined

Type list

results matching ""

    No results matching ""