3 ms·
Storing Multi-Line Strings in JSON
- ibotty 14y agowhy doesn't (s)he use "\n"?
- firefoxman1 14y agoYeah, I think the easiest way would be this: multilineString.replace('\n', '\\n');
- captn3m0 14y agoThe github API uses "\n" inside blobs for multi-line strings, and it works out easily.