Escape double quotes within double quotes with Regex[JS]

I have a JSON string: '{"place": {"address": "Main Street, "The House""}}'.

Before parsing it with JSON.parse() I have to make sure that the double quotes within double quotes are escaped properly.

I was trying to come up with the regex that would match “The House”, but failed to so.

Any idea on how can I achieve desired result?


Source: json

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.