So I am trying to pivot some large Json arrays into a row by row format (postgres db). So imagine
{“searchResults”:[{“id”:“89705”,“score”:42,“title”:“Foo.”,“properties”:{…
However this array may contain hundreds of nested arrays (largest so far is 350) and then I need to repeat this for each row, I have looked at using a ‘for loop’ however that does not seem to be supported by MB. Are there any other suggestions on how to go around this ?
Ideal Output
Array, ID , Score, Title
1 89705, 42, foo
1 89706, 34, bar
2 90003, 54, thing
2 98594, 53, that
(so 1,2 represent different rows in the initial table that both contain ??? amounts of objects the JSON data array)
Cheers