3 ms·
Can anyone suggest a serialization format that can be implemented across languages without being a language lawyer? JSON seems like it fits the bill but I have
by EGreg 7y ago
Can anyone suggest a serialization format that can be implemented across languages without being a language lawyer?
JSON seems like it fits the bill but I have seen soooo many complaints about UNICODE encodings, whitespace or some other things, and people saying secure scuttlebutt suxx because it relies on perfectly copying Node’s JSON implementation. But dudes, what format is better out there?
- Vendan 7y agoThe SSB issue with json is that it plays with the json after signing it. Just don't do that.
- EGreg 7y agoPlease elaborate What specifically do you mean? I have so far resorted to using http_build_query type algorithms to make it for sure canonical.
- velosol 7y agoIt's not a fun format to work in but ASN.1 is aimed at that and there's also protocol buffers, Avro, and messagePack, among others.