Post
How do you 🫵 quickly escape your JSON string? Trivial but mega useful when needed for lots of things 🤷♂️
`escapy_json '{"key1":"value1","key2":"value2”}’`
```
# python command to escape JSON string (minimal py deps)
escapy_json() {
python -c "import json; print(json.dumps('$1'))"
}
```
0
0
0