We will be adding an action for constructing JSONs in version 4.1. It will work as follows: convert a row into a JSON. If a row value is already a JSON, make it a nested JSON.
Meanwhile, you can use the Table2json module from this example: https://community.easymorph.com/t/example-constructing-json/1279. It basically performs the same construction described above.