ctExecJsonAction

ctExecJsonAction() executes the JSON Action request with the user-defined JSON string and returns the JSON string with the JSON Action response. If the provided buffer is not large enough, error VBSZ_ERR is returned, and the required buffer size is populated in the outputSize parameter.

Declaration

NINT ctExecJsonAction(const char *input, char *output, size_t *outputSize);

Description

  • input - specifies the JSON string being sent in the request.
  • output - specifies the JSON string once it has been returned in the response.
  • outputSize - specifies the size of the JSON string that was returned.

For best performance, the caller should avoid providing output buffers that are too small.

Return Values

Value Symbolic Constant Explanation
0 NO_ERROR Successful function.
153 VBSZ_ERR Output buffer too small.

See c-tree Plus Error Codes for a complete listing of valid c-tree Plus error values.