thanks for reading and hope you can help me.
This is what my json string looks like. I'm struggling to find a way to parse it in Snowflake.
{"date":"2020-07-13T00:00:00.0000000","Reason":"{\"description\":\"Test\",\"alternates\":{},\"position\":10}","forename":"Tester","surname":"Test","title":"Mr","dateOfBirth":"2000-11-22T00:00:00.0000000"}
When I try PARSE_JSON() I get the following error
SQL Error [100069] [22P02]: Error parsing JSON: missing comma, pos 51
I'm exploring the possibility of cleansing/transforming the data before ingestion but perhaps someone out there has a better solution to deal with this issue within Snowflake.
So far I haven't been able to parse this or create a regular expression to replace the quote marks after the backwards slash.
Any help is much appreciated
Thanks!
jc