Hi All,
How can we combine the columns and rows in JSON. I have a table which stores columns and rows is JSON is different columns
I'm trying to get the below output from the above dataset. so how to combine the above JSON.
Hi @Vinod Kumar R,
Can you please share the OML to understand better.
Thanks
Hi, have you tried to use the JSON Deserialize OS object?
https://success.outsystems.com/documentation/11/reference/outsystems_language/logic/implementing_logic/logic_tools/json_deserialize/
Using this you can pass all data into a structure and combine all information
Best Regards,
João Fernandes
Hi Vinoth,
if you want use as structure variable in outsytems, then it should be static columns, if your columns are static and only rows are changed, then create new structure with fixed columns, and for loop to add columns.
if your columns are also dynamic, then structure variable is not possible, only you can manipulate columns and rows in for loop, and combine one json as string used in runtime.
Thanks,
Balasubramanian