Skip to content

Feature: strip quotes from keys (when possible) #5

@shmargum

Description

@shmargum

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"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions