elements
[{"name":"email",
"value":"[email protected]",
"nodeName":"INPUT",
"type":"text"},
{"name":"password",
"value":"*****",
"nodeName":"INPUT",
"type":"password"},
{"name":"checkbox",
"value":null,
"nodeName":"INPUT",
"type":"checkbox"}]
I have data like this in redshift. How do I extract value [email protected] from this. This query is for redshift. Please help me with the SQL. Elements is a column name and the value starts with [].
Query I tried: select id, json_extract_path_text(ELEMENTS, 'name') as name1 from table
error:[XX000][500310] Amazon Invalid operation: JSON parsing error Details: ----------------------------------------------- error: JSON parsing error code: 8 ...
elements [
or if it just starts with[
andelements
is just the column name. Ideally, you should give enough information that someone could exactly reproduce your error; stackoverflow.com/help/mcve – MatBailie