Ignoring “cols”, I am able to use a combination of JSON PATH, UNGROUP, and JSON TO TABLE to extract “rows” into a table with each row having the corresponding column headings .
How do extract “cols” in the JSON file in addition to “rows” into a table using “cols” as the table column headings? As shown in the JSON above, some “cols” do not always have values in “rows” that’s why I want to use “cols” for the table structure.
Yes, I want to have the location field even if there is no data. Why? I am building the workflow as a template to be used by various business units with different scenarios. Some business units might have all the fields and others might not. String manipulation is required for every field listed in “cols”. Thus trying to build one template to be used by all business units instead of having to build a workflow for each business unit. The fields listed in “cols” will be the same for all business units.