Describe the problem.
I am using the sample json to extract Amazon Reviews:
The output for rating is: 4.2 out of 5 Stars. I want to extract 4.2 only and I used the regex shown below.
However when I import the sitemap, I get an invalid message: Invalid JSON.
Why is that so?
The Sitemap:
{
"id": "rating",
"type": "SelectorText",
"parentSelectors": [
"review"
],
"selector": "span.a-icon-alt",
"multiple": false,
"regex": "([^\s]+)",
"delay": 0
},