4 ms·
What different serialization format? I thought serialization == string.
by SimeVidas 10y ago
What different serialization format? I thought serialization == string.
- deleted 10y ago[deleted]
- deleted 10y ago[deleted]
- DCoder 10y agoLike it says earlier in the post, it could be enough to only serialize (stringify) the data structure at the very end of building it, once it's finalized. Once it's stringified, it must be treated as a isolated black box, which cannot be inspected, modified, or combined with other black boxes. I tried to build something like that for rendering HTML, for the same reasons – security and proper structure. But, stupidly, I was working in PHP, and so its syntax was somewhat clunky. I still think it is a good idea, though.
- Someone 10y agoserialization == convert to a byte stream. The byte stream can be a character stream in whatever encoding or a binary one. https://en.wikipedia.org/wiki/Comparison_of_data_serialization_formats https://en.wikipedia.org/wiki/Comparison_of_data_serializati... lists lots of binary serialization formats.
- SimeVidas 10y agoI see. Thanks!