2 releases
0.1.1 | Nov 16, 2024 |
---|---|
0.1.0 | Nov 16, 2024 |
#805 in Command line utilities
246 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