Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: mlamFollowing from above...
There isn't a way to do this within the node in the way that I was thinking, but there are ways around it, including:
- Output array field to separate output pin
- Read data as per JSON Data node and aggregate results
- Read data as delimited text and manipulate JSON data record to exclude array field
1. Output array field to separate output pin
In the JSON Data node, you can add additional outputs for specific attributes such that the data values for those attributes are output to a separate pin than the catch-all "Data" output. This is detailed in the help for the JSON data node.
Note: At present, this will only work if the attribute specified is
not the top level attribute i.e. if I have {"sample": ["a":"1","b":"2","c":"3"] } then I can pull out "sample.c" but if I had {["a":"1","b":"2","c":"3"] }, I wouldn't be able to specify "c".
2. Read data as per JSON Data node and aggregate results.
Read in data as per JSON Data node then collapse the multiple lines to single record using Agg node.
3. Read data as delimited text and manipulate JSON data record to exclude array field.
Read the JSON data in as delimited text, strip out the array element and recreate JSON data string without array value, parse through JSON node to format fields then add array column back in after.