Json Parse:期待'EOF','}',',',']',得到'undefined'

问题描述 投票:0回答:0

我在 Json 验证器中得到这个错误:

错误:第 10 行的解析错误: ... "popup.html" }}// popup.html

期待'EOF','}',',',']',得到'undefined'。

当上传到 Chrome 时,错误是:

Manifest 不是有效的 JSON。行:12,列:1,语法错误。 (这是)

有什么想法吗?谢谢

{
  "name": "Smart Learning Assistant",
  "version": "1.0",
  "description": "A Chrome extension that helps people learn new things.",
  "manifest_version": 3,
  "permissions": ["tabs", "contextMenus"],
  "action": {
    "default_popup": "popup.html"
}
}

// popup.html
<!DOCTYPE html>
<html>
<head>
 <title>Smart Learning Assistant</title>
</head>
<body>
<header>

json google-chrome doctype
© www.soinside.com 2019 - 2024. All rights reserved.