2 releases
0.1.1 | Nov 16, 2024 |
---|---|
0.1.0 | Nov 16, 2024 |
#1267 in Command line utilities
203 downloads per month
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