You can combine those three actions into one:
Append to a JSON Array (compact).kmmacros (3.2 KB)
...the extra maths being required because of KM's 1
-based array indexing.
Otherwise, isn't JSON just text in a standardised format? In which case:
Append to a JSON Array (strings).kmmacros (3.2 KB)
Both should also work with "internal" arrays if you've a nested format -- in both cases you'd be pulling the "internal" array into Local_Array
, manipulating it, then replacing the original in the blob.