IT seems like the tokens you want to find are in properties in quotes. It would be best to JSON.parse
first and then look at properties and see if they match the expression, but you can search the raw JSON with something like:
text.match(/"\{([^\}]+)\}"/gm)
This assumes that the tokens start with "{
and end with }"
. You may also want to try:
text.match(/"\s*\{\s*([^\}]+)\s*\}\s*"/gm)