kairyu / tkg

TMK Keymap Generator
http://tkg.io
97 stars 30 forks source link

Valid JSON Returns Error #12

Closed rfarine closed 7 years ago

rfarine commented 7 years ago

I am trying to create this keyboard layout and cannot see why this is throwing an error:

[
  [
    {
      "x": 2.25,
      "a": 0
    },
    "Esc\n\n\n\n~\n`",
    {
      "c": "#ffac00",
      "a": 4
    },
    "!\n1\n\n\nF1",
    {
      "c": "#008fb0"
    },
    "@\n2\n\n\nF2",
    {
      "c": "#249c78"
    },
    "#\n3\n\n\nF3",
    {
      "c": "#a89f8d"
    },
    "$\n4\n\n\nF4",
    {
      "c": "#dca2c8"
    },
    "%\n5\n\n\nF5",
    {
      "c": "#cccccc"
    },
    "^\n6\n\n\nF6",
    "&\n7\n\n\nF7",
    "*\n8\n\n\nF8",
    "(\n9\n\n\nF9",
    ")\n0\n\n\nF10",
    "_\n-\n\n\nF11",
    "+\n=\n\n\nF12",
    {
      "w": 2
    },
    "Backspace",
    {
      "c": "#249c78"
    },
    "~\n`"
  ],
  [
    {
      "x": 2.25,
      "c": "#cccccc",
      "w": 1.5
    },
    "Tab",
    "Q",
    "W\n\n\n\n↑",
    "E\n\n\n\nFn5",
    "R\n\n\n\nFn6",
    "T\n\n\n\nFn7",
    "Y\n\n\n\nCalc",
    "U",
    "I\n\n\n\nIns",
    "O",
    "P\n\n\n\nPSc",
    "{\n[\n\n\nScrLk",
    {
      "a": 0
    },
    "}\n]\n\n\nPus\nBrk",
    {
      "a": 4,
      "w": 1.5
    },
    "|\n\\",
    {
      "c": "#ffac00"
    },
    "↑"
  ],
  [
    {
      "x": 2.25,
      "c": "#cccccc",
      "w": 1.75
    },
    "Caps Lock",
    "A\n\n\n\n←",
    "S\n\n\n\n↓",
    "D\n\n\n\n→",
    "F\n\n\n\nFn8",
    "G\n\n\n\nFn9",
    "H",
    "J",
    "K",
    "L",
    ":\n;\n\n\nHome",
    "\"\n'\n\n\nPgUp",
    {
      "w": 2.25
    },
    "Enter",
    {
      "c": "#ffac00"
    },
    "→"
  ],
  [
    {
      "x": 2.25,
      "c": "#cccccc",
      "w": 2.25
    },
    "Shift",
    "Z",
    "X\n\n\n\nApp",
    "C\n\n\n\nFn1",
    "V\n\n\n\nFn2",
    "B\n\n\n\nFn3",
    "N\n\n\n\nVolDn",
    "M\n\n\n\nVolUp",
    "<\n,\n\n\nMute",
    ">\n.\n\n\nEnd",
    "?\n/\n\n\nPgDn",
    {
      "w": 2.75
    },
    "RShift",
    {
      "c": "#ffac00"
    },
    "←"
  ],
  [
    {
      "x": 2.25,
      "c": "#cccccc",
      "w": 1.25
    },
    "Ctrl",
    {
      "w": 1.25
    },
    "Alt",
    {
      "w": 1.25
    },
    "Win",
    {
      "w": 6.25
    },
    "Space",
    {
      "w": 1.25
    },
    "Win",
    {
      "w": 1.25
    },
    "Alt",
    {
      "w": 1.25
    },
    "Ctrl",
    {
      "w": 1.25
    },
    "Fn0",
    {
      "c": "#ffac00"
    },
    "↓"
  ]
]

screen shot 2017-02-10 at 10 17 39 am

AdamYoung1234 commented 7 years ago

You can directly copy raw data from RawData tab in Keyboard Layout Editor to tkg

kairyu commented 7 years ago

Please try to remove the outermost bracket.

rfarine commented 7 years ago

Thank you!