4 ms·
Bad thing to read when I'm writing a sass to json module
by andrewvijay 10y ago
Bad thing to read when I'm writing a sass to json module
- lucb1e 10y agoThe encoding takeaway seems simple: escape everything with \uxxxx characters that is outside of the ASCII range /[ -~]/ (regex) and you'll be pretty much fine. Set the encoder to utf-8, don't leave [dangling,commas,], and a few other things that are obvious from json.org.
- inimino 10y agoEscaping everything outside of ASCII is terribly human-unfriendly and wasteful in bytes as well.
- nathancahill 10y agoF