I am trying to escape the double quotation marks in my json string in order to execute the following sqlite statement in phonegap ie. using javascript:
var sqlstatement= 'INSERT INTO ACTIVITY(activity) VALUES("{\"clicks\":100, \"activityTypeCode\":3}")'
However when It try:
tx.executeSql(sqlStatement,errorCB, sucessCB)
the double quotes arent escaped and I go to the errorCallback because of the many pairs of double quotes. is there a way around this?