More stupid questions! #1 Using liquid concat we ...
# general
d
More stupid questions! #1 Using liquid concat we can merge the content of arrays, but is it possible to merge entire JSON blocks? For example if I have a block of JSON that has 3 sets of KVP’s and I want to add a fourth? Currently I can frig this as I know the total size/name of the initial block so can manually “construct” the required output by transposing specific input fields to the desired output fields, but this is clunky and only works for known sized JSON blocks etc. #2 What is the easiest way to update a single value in a block of JSON while leaving the rest of the data untouched? Similar to the above, I currently frig this because I know the format of the input/output so can manually recreate the required JSON and insert a single modified value, while transposing the unchanged sections, but am looking to see how best to do this on a more generic basis. Thanks
m
Hi Alistair - these are great questions, but kinda difficult in the abstract! Can you share some generic examples of events / payloads you'd like to create from their constituent parts and then we can take a look at trying to figure out the best way?