json2str

Crates.iojson2str
lib.rsjson2str
version0.1.1
sourcesrc
created_at2024-11-16 02:39:41.740283
updated_at2024-11-16 02:44:28.1034
descriptionA simple CLI tool to read a JSON file and get back it as a quoted string
homepage
repositoryhttps://github.com/signaes/json2str
max_upload_size
id1449824
size4,702
Thiago Oliveira (signaes)

documentation

README

json2str

Some times all you need is getting a quoted string from a JSON file, for this you can cargo install json2str, and then supposing you have a json file named sample.json with this content:

{
  "test": true
}

Running:

json2str sample.json

Should give you:

"{\"test\":true}"
Commit count: 4

cargo fmt