When I try to run given code I get the error :: string literal not terminated (illegal character U+005C '\') . How do I fix the given code?
payload := "{
\"key_id\":\"3\",
\"contacts\":[
{
\"external_id\":\"[email protected]\",
\"data\":{
\"global\":{
\"name\":\"Adoni Mishra\"
}
}
},
{
\"external_id\":\"[email protected]\",
\"data\":{
\"global\":{
\"name\":\"CHANDAN KUMAR\"
}
}
}
]
}"
When I concat all the lines in one then it starts working::
payload := "{\"key_id\":\"3\",\"contacts\":[{\"external_id\":\"[email protected]\",\"data\":{\"global\":{\"name\":\"Adoni Mishra\"}}},{\"external_id\":\"[email protected]\",\"data\":{\"global\":{\"name\":\"CHANDAN KUMAR\"}}}]}"