gpt4 book ai didi

json - JSON格式,有效的JSON显示语法错误

转载 作者:行者123 更新时间:2023-12-03 08:28:11 25 4
gpt4 key购买 nike

因此,我正在尝试部署我的简单stamplay Web应用程序,但出现错误:

stamplay.json中的语法错误:意外 token {

我尝试通过几种失败的格式尝试进行故障排除。我确保也没有多余的元数据或特殊字符。

尽管这可能是我犯的一个愚蠢的错误,但经过一个多小时的搜索,我仍然找不到解决方法,我们将不胜感激。

 {
{ "appId": "name",
"apiKey": "apikeyhere",
"public": "./",
"ignore": [
"stamplay.json",
"**/.*",
"**/node_modules/**"
] }
{ "headers": [
{
"source" : "**/*.@(jpg|gif|png|mp3|mp4)",
"headers" : [
{
"key" : "Cache-Control",
"value" : "max-age=7200"
}
]
},
{
"source" : "**/*.@(html|css|js|php)",
"headers" : [
{
"key" : "expires",
"value" : "1y"
}
]
}
]
}
}

最佳答案

这是您要做什么?

{
"appId": "name",
"apiKey": "apikeyhere",
"public": "./",
"ignore": [
"stamplay.json",
"**/.*",
"**/node_modules/**"
],
"headers": [
{
"source": "**/*.@(html|css|js|php)",
"headers": [
{
"key": "expires",
"value": "1y"
}
]
},
{
"source": "**/*.@(html|css|js|php)",
"headers": [
{
"key": "expires",
"value": "1y"
}
]
}
]
}

关于json - JSON格式,有效的JSON显示语法错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37601398/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com