Use the Edit Fields node to set Pathway data. This node can set new data as well as overwrite data that already exists. This node is crucial in pathways which expect incoming data from previous nodes, such as when inserting values to Google Sheets or databases.
For example, when using manual mapping, the node follows the dot notation for the Name field. That means if you set the name in the Name field as number.one and the value in the Value field as 20, the resulting JSON is:
1
{"number":{"one":20}}
You can prevent this behavior by selecting Add Option > Support Dot Notation, and setting the Dot Notion field to off. Now the resulting JSON is:
[{"id":"23423532","name":"Jay Gatsby","email":"gatsby@west-egg.com","notes":"Keeps asking about a green light??","country":"US","created":"1925-04-10"},{"id":"23423533","name":"José Arcadio Buendía","email":"jab@macondo.co","notes":"Lots of people named after him. Very confusing","country":"CO","created":"1967-05-05"},{"id":"23423534","name":"Max Sendak","email":"info@in-and-out-of-weeks.org","notes":"Keeps rolling his terrible eyes","country":"US","created":"1963-04-09"},{"id":"23423535","name":"Zaphod Beeblebrox","email":"captain@heartofgold.com","notes":"Felt like I was talking to more than one person","country":null,"created":"1979-10-12"},{"id":"23423536","name":"Edmund Pevensie","email":"edmund@narnia.gov","notes":"Passionate sailor","country":"UK","created":"1950-10-16"}]
Add the following JSON in the JSON Output field, with Include in Output set to All Input Fields:
[{"id":"23423532","name":"Jay Gatsby","email":"gatsby@west-egg.com","notes":"Keeps asking about a green light??","country":"US","created":"1925-04-10","newKey":"new value","array":[23423532,"Jay Gatsby"],"object":{"innerKey1":"new value","innerKey2":"23423532","innerKey3":"Jay Gatsby"}},{"id":"23423533","name":"José Arcadio Buendía","email":"jab@macondo.co","notes":"Lots of people named after him. Very confusing","country":"CO","created":"1967-05-05","newKey":"new value","array":[23423533,"José Arcadio Buendía"],"object":{"innerKey1":"new value","innerKey2":"23423533","innerKey3":"José Arcadio Buendía"}},{"id":"23423534","name":"Max Sendak","email":"info@in-and-out-of-weeks.org","notes":"Keeps rolling his terrible eyes","country":"US","created":"1963-04-09","newKey":"new value","array":[23423534,"Max Sendak"],"object":{"innerKey1":"new value","innerKey2":"23423534","innerKey3":"Max Sendak"}},{"id":"23423535","name":"Zaphod Beeblebrox","email":"captain@heartofgold.com","notes":"Felt like I was talking to more than one person","country":null,"created":"1979-10-12","newKey":"new value","array":[23423535,"Zaphod Beeblebrox"],"object":{"innerKey1":"new value","innerKey2":"23423535","innerKey3":"Zaphod Beeblebrox"}},{"id":"23423536","name":"Edmund Pevensie","email":"edmund@narnia.gov","notes":"Passionate sailor","country":"UK","created":"1950-10-16","newKey":"new value","array":[23423536,"Edmund Pevensie"],"object":{"innerKey1":"new value","innerKey2":"23423536","innerKey3":"Edmund Pevensie"}}]