What is Nostr?
nobody /
npub138gā€¦k36k
2024-01-16 22:28:33

nobody on Nostr: How do you šŸ«µ quickly escape your JSON string? Trivial but mega useful when needed ...

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'))"
}
```
Author Public Key
npub138guayty78ch9k42n3uyz5ch3jcaa3u390647hwq0c83m2lypekq6wk36k