0

In Jolt it is possible to assign a constant value to a field by prefixing the constant value with # as below.

{ "#2": "myField"}

But this constant is always added as a string value. How can I add it as a numeric value?

Udith Gunaratna
  • 2,091
  • 1
  • 13
  • 17

1 Answers1

1

Use "default" or the newer "modify-default-beta".

[
  {
    "operation": "default",
    "spec": {
      "myField": 2
    }
  }
]
Milo S
  • 4,466
  • 1
  • 19
  • 22