I have a JSON file that contains various recipes for different meals categorized by their purpose of either losing weight or gaining weight.
{
"breakfast": {
"lose": [
{
"name" : "Fruit Shake",
"ingredient" : "Up to 300g of fresh fruit",
"recipe": "Put all the chosen fruit in the mixer, unitl you have a liquid fruit shake, that as low calories and a good taste",
"macro-review": "Some carbs, represented by natural sugar, a lot of vitamin"
},
{
"name" : "Avocado and smoked salmon toasts",
"ingredient": "Avocado, toast, smocked salmon",
"recipe": "Put the avocado on the toast, and then the smocked salmon. If you really want to lose fat, don't put too much avocado",
"macro-review": "A few carbs, represented by bread, and a lot of protein, represented by avocado and salmon"
}
],
...
Despite using an online JSON validator, I encountered an error message in the console:
Uncaught SyntaxError: Unexpected token ':'
. This issue is hindering my progress with importing the data into my JavaScript file. Any insights on resolving this problem would be greatly appreciated. Thank you!