I have a JSON field in a table in which the data might be stored as one or more elements (i.e. "[{a: 1, b:2}]" or "[{a: 1, b:2},{b: 1, c:2}]").
How can I generate MariaDB query to result in the following:
A B C
===========================
1 2 NULL
NULL 1 2
Of course the "NULL" value can be altered but the idea is that a JSON array will be shown as row for each element.
I know that MySQL have JSON_TABLE function with the new versions, i'm looking for MariaDB equivalent.