I have some raw data in a varchar column but when I run the to_variant() function on it the data changes drastically. For example.
This json data stored in varchar
{
"event_detail": {
"event_name": "quote_created",
"id": "679cc110-1c06-4f7d-aeed-1f637c0eff2d",
"source": "Quote service",
"timestamp": {
"nanos": 730693300,
"seconds": 1603366821
}
}
Turns into this
"{
\"event_detail\": {
\"event_name\": \"quote_created\",
\"id\": \"679cc110-1c06-4f7d-aeed-1f637c0eff2d\",
\"source\": \"Quote service\",
\"timestamp\": {
\"nanos\": 730693300,
\"seconds\": 1603366821
}
}"
Has anyone seen this before? It makes parsing the variant extremely difficult? I've also seen the first json payload stored without "\" characters in variant data types before.