2

(つまり、私はグラフィックデザイナー/アーティストであり、あらゆる種類のコードやスクリプトを初めて使用します。)

Chromeテーマコードでエラーが発生します:

「'E:\ Web \ dev \ theme \ dev \ Test'から拡張機能を読み込めませんでした。マニフェストは有効なJSONではありません。行:7、列:4、構文エラーです。」

このコードサンプルに示すように、指定された構文エラーは空白スペースにあるため、どこが間違っているのかわかりません。

    {
      "manifest_version": 2,
      "version": 2.0
      "name": "Test",
        "theme": {
          "images" : {
          "theme_frame" : "images/frame.png",
          "theme_toolbar" : "images/toolbar.png",
          "theme_ntp_background" : "images/polygons.png",
          "theme_tab_background" : "images/tab.png",
          "theme_ntp_attribution" : "images/theme_ntp_attribution.png"
        },
        "colors" : {
            "ntp_link": [255,255,255],
        "ntp_text": [255,255,255],
        "ntp_section_link": [255,255,255],
        "ntp_section_text": [10 , 17 , 27],
        "ntp_background": [10 , 17 , 27],
        "frame": [10 , 17 , 27],
        "toolbar": [10 , 17 , 27],
        "tab_text": [255,255,255],
        "tab_background_text": [10 , 17 , 27],
        "bookmark_text": [255,255,255]
        },
        "tints" : {
                    "buttons" : [0.33, 0.5, 0.47]
        },
        "properties" : {
            "ntp_background_alignment" : "bottom",
        "ntp_background_repeat": "no-repeat"
        }
      }
    }

それで、どこ間違っているのですか?

4

1 に答える 1

1

行にカンマを入れるのを忘れました

"version": 2.0

ちなみに、JSONLintを使用してJSONを検証できます。

于 2013-03-07T19:33:05.493 に答える