JSON

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.

FieldTypeNote
task*stringTASK_GET_VALUE
json_string*stringJSON value as a string
path*stringPath 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.

Last updated: 11/11/2023, 2:41:35 PM