You cannot use a JSON Object column to retrieve multiple properties from a query and output them as an array.
Here, you can’t access query properties. However, it would be very beneficial to have the ability to output a JSON array containing the specified properties. For example:
[
{
"prop1":"value of row 1's prop1",
"prop2":"value of row 1's prop2"
},
{
"prop1":"value of row 2's prop1",
"prop2":"value of row 2's prop2"
},
"..."
]
Currently, the workaround to achieve the desired result involves the following steps:
-
Open the queried table.
-
Add a JSON Object column:
-
In the main table, include a joined list column:
Make sure to separate values by a comma:
-
Create a Template column to add array brackets around the joined list:
-
Finally, add a JSON Template column to format the template into valid JSON:
It would be much easier and beneficial to have the ability to create a JSON Object Array directly.
I may consider renaming my feature request.