Replies: 3 comments 19 replies
-
As discussed in the reddit post, I had updated the BON8 specification to handle small arrays and objects better. I have now merged those changes to the main branch, and the "specification" link above post to the correct version. No more changes will be done to the codes and their meaning. If there are other bugs in the specification, or things that are unclear, please don't forget to contact me and attempt to fix those issues. |
Beta Was this translation helpful? Give feedback.
-
-0.0 should be encoded as 0xfc. Mostly because 0.0 compares equal to -0.0, and has pretty limited impact. The last "d" needs to be terminated with 0xff as well, due to it being at the end of the message. Append 0xff when:
I will update the documentation to be more clear, maybe add a few examples. |
Beta Was this translation helpful? Give feedback.
-
FYI, I started a PR for BON8 support: #2998. |
Beta Was this translation helpful? Give feedback.
-
In a recent Reddit discussion I learned about the BON8 format which is another binary format for JSON, but with a unique idea to exploit some characteristics of UTF-8 strings.
Maybe this format could be added as prototype to the library.
/cc @takev
Beta Was this translation helpful? Give feedback.
All reactions