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'))"
}
```
Login to reply
Replies (1)
#techtips #techski ๐ค