robtweed/qewd-transform-json

Get parent DATA from array element

mpanichellasura opened this issue · 1 comments

I cant get parent data from child array, for example

var templateObj = {
JobNumber: "{{job.number}}",
Periods: ['{{motor.vehicles}}', {
ExternalID: "{{ROOT_INPUT_OBJECT.number}}",

you haven't given the input of the data but from your code you don't seem to have the parent array inside the template Object.

Look at the https://github.com/robtweed/qewd-transform-json#substituting-arrays
Note the syntax for array and child elements

people: [
      '{{arr}}',