I'm trying to create a JSON file which will hold a regular expression. for example:
{
"FrameworksData": [{
"name": "jquery",
"regexes": ["script\s+src\s*=\s*\"jquery", "b", "c"],
"extensions": [".js"],
"conditions":"t1=r1||r2||r3; t2=t1&&e1; res=t2;"
}
]
}
I need to use the double/single quotes as part of the regex that is located inside the JSON. However this JSON is not valid as a result of the structure \"jquery. how do I use the single quotes and the double quotes in the JSON so I can achieve the correct regex? Thanks!