|
|
|
|
|
by justin_vanw
4667 days ago
|
|
Man, I'm starting to think there is a cult around JSON. If you need to accept arbitrary binary data, JSON is a profoundly bad choice. At a minimum, you would expect them to base64 encode the data and put that into a JSON string. If you are looking at error reports, how is it even remotely acceptable to have them silently modified to include invalid unicode replacement characters? The lesson here isn't some crappy hack workaround they found, it's a case study in the lengths you'll have to go to when you insist on making technology choices without considering the problem you want to solve. |
|
I wonder... at some point, Javascript could get a convenient literal syntax for creating pre-filled ArrayBuffers, which would basically be the format JSON would want to adopt. But would it? Are changes to Javascript literal syntax folded into JSON, or is JSON now its own thing that doesn't track JS any more?