phretaddin / schemapack

Create a schema object to encode/decode your JSON in to a compact byte buffer with no overhead.
MIT License
452 stars 33 forks source link

No mentions to (not object-wrapped) array serializations #3

Closed castarco closed 8 years ago

castarco commented 8 years ago

SchemaPack is directly compared with some serialization formats like JSON and MessagePack. Both of them have the ability to directly serialize arrays, without the need of wrapping them into "objects", in the SchemaPack documentation there is no info about how to directly serialize arrays without having to wrap them in objects.

Is this possible? If no, maybe it should be convenient to explain it to make easier for other programmers which limitations has this serialization format.

phretaddin commented 8 years ago

Do you mean something like this? https://github.com/phretaddin/schemapack/blob/master/README.md#add-type-aliases

You can directly serialize arrays. Maybe I should make a larger point of it. I kinda just included it in another example. It's a bit hidden away at the moment.

phretaddin commented 8 years ago

Updated the readme to better inform of this feature's existence.