I'm trying to create a string in javascript which needs to be valid JSON the string is
{"query":"FOR u IN Countries RETURN {\"_key\":u._key}"}
I keep going around in circles as to how i can include the \
character given its also used to escape the quote character. can anyone help ?