Say I have the following stored in a JSON column in an Oracle database:
{
"key-with-hyphens": "value"
}
Assuming this column is called json_column
in a table called my_table
, then I'm trying to select the value for the "key-with-hyphens"
key like so:
select json_column.key-with-hyphens from my_table;
This gives me the following error:
ORA-00936: missing expression
00936. 00000 - "missing expression"
Is there some kind of special syntax you need to use when selecting the value for a hyphenated key from a JSON column in Oracle?