vim-jdaddy icon indicating copy to clipboard operation
vim-jdaddy copied to clipboard

Feature: strip quotes from keys (when possible)

Open shmargum opened this issue 7 years ago • 0 comments

I found this plugin pretty useful for moving some json into a regular .js file and only formatting the valid json parts of my file. It would be nice if it was able to strip out quotes from keys by default, or as an option, so I can have more uniform styles.

Example input json:

{"key1":"val1",key2:"val2"}

Current output:

{
  "key1": "val1",
  key2: "val2"
}

Desired output:

{
  key1: "val1",
  key2: "val2"
}

shmargum avatar Jan 05 '18 16:01 shmargum