Use the javascriptToBubble functionality from the Toolbox plugin.
You can run a run javascript action, make changes to your JSON array, and then call the javascriptToBubble action with the updated JSON and in the event that gets triggered, set the new JSON as the state.