j5j

Crates.ioj5j
lib.rsj5j
version0.2.0
sourcesrc
created_at2022-08-20 21:24:54.535638
updated_at2022-08-20 21:24:54.535638
descriptionA bare-bones tool for converting JSON5 to plain JSON.
homepage
repositoryhttps://github.com/olix0r/j5j
max_upload_size
id649486
size23,056
Oliver Gould (olix0r)

documentation

README

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:v30","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:v30",
  "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"
  ]
}
Commit count: 13

cargo fmt