fix jsonStringMatch to include escapes

Fixes a problem where escape sequences like \n cause the string to not be matched as a jsonString.