I am getting the *“Resource file is not a valid JSON object” error in module 4 assessment of answers track. I don’t know JSON so tried using comma here and there but was of no use. Please help.
Hi Abhishek,
Could you post the JSON you are trying to add in a code block here? One tool I find helpful is https://jsonlint.com/ - it will validate any json object for valid syntax for you. The UI in the Answers Config Code Editor should also highlight areas with improper syntax.
Hi Afarooque,
The issue has been resolved. There was an extra pair of brackets in my code.
Thanks.
Hi,
I am following up on this topic because I have an error to this same assessment.
When submitting, I have 1 error “Update the Restaurants config file to add Facets component”.
I double checked the instructions and the files I have updated, but I probably miss something.
Here is my sandbox code editor: https://sandbox.yext.com/s/2670262/sitesgit/85514/
Thanks in advance if you have any idea.
Nicolas
Hi Nicolas!
You’re so close here! It seems that you’ve entered the “showMoreLimit” as a string rather than a number. You’ll want to remove the quotes around the 3 for that field to be considered a number.
"showMoreLimit": 3,
Let me know if that helps!
Best,
Alyssa
Hey Alyssa !
Yes it helps!! I was so focused on the visual changes, I totally missed that obvious syntax error
Thanks a lot for the help, assessment completed!