Below is the data that is stored in one column of a table(table:stg, col:LN) and query that i used to access the columns:
{"locations": [{"id": "893d7ef0", "name": "Organization", "type": "region"},
{"id": "7ad8787c", "name": "CORONA", "type": "st", "st_id": "1127"}]}
Query used is:
select * from(
select
replace(LN : locations.id , '"' , '')as loc_id,
replace(LN : locations.name , '"' , '') as loc_name,
replace(LN : locations.type , '"' , '') as loc_type,
replace(LN : locations.st_id , '"' , '') as loc_store_id
from db.schema.STG)
The query is giving NULL in columns, is the issue. Any suggestions?