Expand JSON_TABLE functionality
I tried to wok with JSON_TABLE and think it is not covered one interesting case.
I have such json: '{"a": 5, "b": 3, "c": 4}'
I want to get this result:
| key | value |
---------------
| a | 5 |
| b | 3 |
| c | 4 |
---------------
One column is key and other - its value. A can't come up with how to get this result.
So, may be, it is possible to expand functionality of JSON_TABLE to something like this:
json_table(
'{"a": 5, "b": 3, "c": 4}',
'$.*' COLUMNS (
key VARCHAR(50) KEY,
value INT PATH '$'
)
)
Subject
Written By
Posted
Expand JSON_TABLE functionality
December 07, 2018 03:50AM
December 07, 2018 11:55AM
December 10, 2018 07:26AM
December 10, 2018 07:52AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.