Transformer (JOLT) V2
Discover more about the Transformer (JOLT) V2 component and how to use it on the Digibee Integration Platform.
Last updated
Was this helpful?
Was this helpful?
{
"body": {
"userName": "John"
}
}[
{
"operation": "shift",
"spec": {
"body": {
"userName": "data.user_name"
}
}
}
]{
"data" : {
"user_name" : "John"
}
}{
"body": {
"userName": "John"
}
}[
{
"operation": "default",
"spec": {
"body": {
"email": "default@email.com"
}
}
}
]{
"body": {
"userName": "John",
"email": "default@email.com"
}
}{
"body": {
"userName": "John",
"email": "default@email.com"
}
}[
{
"operation": "remove",
"spec": {
"body": {
"email": ""
}
}
}
]{
"body" : {
"userName" : "John"
}
}{
"employee": {
"phone": "999999999",
"name": "Sort Employee",
"birthDate": "1980-01-01",
"role": "analyst"
}
}[
{
"operation": "sort"
}
]{
"employee" : {
"birthDate" : "1980-01-01",
"name" : "Sort Employee",
"phone" : "999999999",
"role" : "analyst"
}
}{
"products": {
"name": "Product A",
"id": "123-A",
"value": 10
}
}[
{
"operation": "cardinality",
"spec": {
"products": "MANY"
}
}
]{
"products" : [ {
"name": "Product A",
"id": "123-A",
"value": 10
} ]
}{
"products": [
{
"name": "Product A",
"price": 10
},
{
"name": "Product B",
"price": 20
}
]
}[
{
"operation": "modify-default-beta",
"spec": {
"products": {
"*": {
"manufacturer": "Manufacturer default"
}
}
}
}
]{
"products" : [ {
"name" : "Product A",
"price" : 10,
"manufacturer": "Manufacturer default"
}, {
"name" : "Product B",
"price" : 20,
"manufacturer": "Manufacturer default"
} ]
}{
"data": {
"firstName": "John",
"lastName": "Smith"
}
}[
{
"operation": "modify-overwrite-beta",
"spec": {
"data": {
"fullName": "=concat(@(1,firstName),' ',@(1,lastName))"
}
}
}
]{
"data" : {
"firstName" : "John",
"lastName" : "Smith",
"fullName" : "John Smith"
}
}