I'm trying convert the below in a string that I can then bae64 encode using btoa( myString)
But i can't for the life of me get the below Json string formatted in a way that i can run the btoa function on it.
"event": "Signed Up",
// "distinct_id" and "token" are
// special properties, described below.
"Referred By": "Friend"
I've tried using \n to replace all the carriage returns. and "" for all the " and still i can't get this to work.
Would be great if C2 could handle JSON in the editor. The AJAX Object is kind of crappy to deal with and for other projects i've written my own plugins to get around this.....
Having a bad JSON formatting day. Please help