The JSON Operator enables users to manipulate a JSON value.
#Release Stage
Alpha
#Operator Configuration
The operator configuration is used for setting up the input data and parameters of this component. The configuration is configured in pipeline recipe, please refer to pipeline for more details.
Field | Type | Note |
---|---|---|
task* | string | TASK_GET_VALUE |
json_string* | string | JSON value as a string |
path* | string | Path to extract value from. eg - a.b, a.b.c[2] etc |
#No-code Setup
#Low-code Setup
This is a sample configuration
in the pipeline recipe.
{ "configuration": { "task": "TASK_GET_VALUE", "json_string": "{ start.json_string }", "path": "{ start.path }" }}
When you send the request, you can use this request format
curl --location 'http://localhost:8080/vdp/v1alpha/users/<user-id>/pipelines/<pipeline-id>/trigger' \--header 'Content-Type: application/json' \--header 'Authorization: Bearer <api_token>' \--data '{ "inputs": [ { "task": "TASK_GET_VALUE", "json_string": "{\"a\":{\"b\":13}}", "path": "a.b" } ]}'
For other operations, please refer to the VDP Protobufs.