I am currently learning javascript and working on creating a JSON code for a website. However, I am facing some error messages related to style, even though I have used style in the code. The specific error messages are as follows: 1: Bad template.json - Expecting property name: line 24 column 2 (char 530) 2: We encountered the following error at the top level of template.json - property style is missing.
The JSON file is named template.json and it includes two images. I have not used any variables yet, but I have included space for future use.
{
"id": "first-123",
"name": "Get Paid",
"mobile": true,
"notes": "Initial import; first pass.",
"syntax": 4,
"version": 1.00,
"style":
{
"replacements":
[
{
"type": "color",
"name": "Background Color",
"find": "#FFFFFE"
}
]
},
"elements":
[
{
"type": "image-link",
"id": "img/34769901.jpg",
"name": "Example 7 Image Link",
"data":
{
"max-width": 1340
}
},
{
"type": "image-link",
"id": "img/34769902.jpg",
"name": "Example 8 Image Link",
"data":
{
"max-width": 1340
}
}
],
"variables": {}
}