Skip to content

A bare-bones tool for converting JSON5 to plain JSON.

License

Notifications You must be signed in to change notification settings

olix0r/j5j

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

j5j

Reads JSON5 from one or more files and prints it as plain old JSON.

Based on `json5-to-json by @callum-oakley.

Examples

:; j5j .devcontainer/devcontainer.json
{"extensions":["DavidAnson.vscode-markdownlint","kokakiwi.vscode-just","NathanRidley.autotrim","redhat.vscode-yaml","rust-lang.rust-analyzer","samverschueren.final-newline","tamasfe.even-better-toml"],"image":"ghcr.io/linkerd/dev:v36","mounts":["source=/var/run/docker.sock,target=/var/run/docker-host.sock,type=bind"],"name":"j5j","overrideCommand":false,"remoteUser":"code","runArgs":["--init","--memory=12g","--memory-swap=12g","--net=host"]}
:; j5j --pretty .devcontainer/devcontainer.json
{
  "extensions": [
    "DavidAnson.vscode-markdownlint",
    "kokakiwi.vscode-just",
    "NathanRidley.autotrim",
    "redhat.vscode-yaml",
    "rust-lang.rust-analyzer",
    "samverschueren.final-newline",
    "tamasfe.even-better-toml"
  ],
  "image": "ghcr.io/linkerd/dev:v36",
  "mounts": [
    "source=/var/run/docker.sock,target=/var/run/docker-host.sock,type=bind"
  ],
  "name": "j5j",
  "overrideCommand": false,
  "remoteUser": "code",
  "runArgs": [
    "--init",
    "--memory=12g",
    "--memory-swap=12g",
    "--net=host"
  ]
}

About

A bare-bones tool for converting JSON5 to plain JSON.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%