The serviceLib.convertToJSON() system function converts a record or dictionary into a JSON string. For details on the conversion, see “Correspondence between a JSON string and an EGL variable.”
serviceLib.convertToJSON(variable VariableType out)
returns (json STRING)