The JS query will be the data source for your JSON filled editor table, triggered by the selection of a row in the main table or on the specific cell which holds the JSON data. The table can be stored in a modal or be a component populated somewhere else within the app.
That table will be editable so you could then hook-up changes to the results to write back into the selected row's JSON field.
Here's an example table from seeded variable data: