Hi there,
I am at step 11 and having issue going forward.
When I hit ‘Show Diff’, I get
ERROR: default/km/field/c_eventDisclaimer.json: Resource file is not a valid JSON object
So far my default/km/field/c_eventDisclaimer.json: looks like this
I think I updated as mentioned in previous steps but can you tell me what I am missing?
Thank you,
Kotoko
The quotes around all of your string values are curly quotes, “”. Replace them with regular quotes, ".
Hey,
I’m also getting the same error: ERROR: default/km/field/c_eventDisclaimer.json: Resource file is not a valid JSON object
My default/km/field/c_eventDisclaimer.json: looks like this:
I’ve played around with it so much but I cannot seem to get the red underline errors fixed
Any ideas?
Ashley
Hi Ashley,
It looks like there was a change in the syntax recently that changed descriptionTranslation
. Instead of deleting the descriptionTranslation
line you want to delete the whole descriptionTranslation
object. In your screenshot, you should delete lines 5-8 and it looks like you have an extra opening brace in line 9 that shouldn’t be there. Additionally, the instructions say to remove the whole displayNameTranslation
object, but it looks like you only deleted the opening line so you’ll also want to delete lines 11-14. It might be easier to start over, but up to you!
Hope that helps - we’ll update the instructions now for future Hitchhikers!
Hi Team,
I also seem to be receiving the same error in my Module assessment as Ashley. But I have the lines removed as mentioned above. Any ideas here?
Hi Eleanora,
In JSON syntax, you’ll want to make sure you have a comma at the end of lines when there is a separate object coming after. Looks like you’ll need commas at the end of lines 4, 5, 6, 7, and 10.
Hope that helps!