Note, how easy to visual guess where end array or object.
This change completely breaks backward compatibility that is already broken by other improvements(;
Now we've got new type of errors as ending marker mismatch.
The main flaw of this change that it breaks pretty [ ] notation. However, as for me, if I'd like to work with binary data, I'll choose hex dump format. If I need to read the data, I prefer YAML one.
Short story:
Riyad Kalla had proposed to change ARRAY and OBJECT markers pairs
A
...E
andO
...E
to[
...]
and{
...}
respectively.This looks like a good idea for the next reasons:
Since UBJSON is binary format, this change makes easy to read data in hex format:
Draft 8 (v0.8) style:
new style:
Note, how easy to visual guess where end array or object.
The main flaw of this change that it breaks pretty
[ ]
notation. However, as for me, if I'd like to work with binary data, I'll choose hex dump format. If I need to read the data, I prefer YAML one.