docker run -i --rm \
ghcr.io/toshy/docker-jsonrepair:latest --helpFixing the ./broken.json file:
docker run -i --rm \
ghcr.io/toshy/docker-jsonrepair:latest < ./broken.json > ./repaired.jsonThe output is written to ./repaired.json:
Fixing the ./broken.json file:
docker run -i --rm \
-u $(id -u):$(id -g) \
-v ${PWD}:/data \
--workdir /data \
ghcr.io/toshy/docker-jsonrepair:latest broken.json --overwriteThe input file broken.json is overwritten with the repaired contents.
Build docker image from docker-bake.hcl with the APPLICATION_VERSION argument for the desired jsonrepair version.
docker buildx bake --set *.args.APPLICATION_VERSION=3.13.0 --loadThe built image will be available with the default tag docker-jsonrepair:local.
docker run -i --rm docker-jsonrepair:local --helpThis repository comes with a MIT license.