#json #cli #json-file #quoted #string #read #back

app json2str

A simple CLI tool to read a JSON file and get back it as a quoted string

2 releases

0.1.1 Nov 16, 2024
0.1.0 Nov 16, 2024

#1267 in Command line utilities

Download history 203/week @ 2024-11-15

203 downloads per month

MIT license

3KB

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

Dependencies

~0.5–1MB
~20K SLoC