You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I use a lot JSON Arduino Library and would like to know if it's possible to modify manually the Deserializer and Serializer to support MessagePack (kinda of binary JSON). Currently, the MessagePack library for Arduino is very hard and not intuitive to use.
As Message Pack contains the same structure as JSON, but with specific bytes to indicate what comes next (float, object, array and so on), I was trying to understand how Deserializer works when decoding strings to float, integer, boolean, etc.
Do you think is viable to manually modify the Deserializer to recognize a Message Pack structure by modifying the existing functions to "think" it's decoding JSON, but instead is decoding Messa Pack?
(I could just get a message in MessagePack and Serialize it to JSON and then apply this library but that would be too inefficient.)
Thanks.
PS: The Serializer I think would be a lot easier to override the existing function to write MessagePack syntax as brackets and commas can be replaced with specific bytes.
The text was updated successfully, but these errors were encountered:
Support for MessagePack is definitely on the roadmap (see #358).
However, I need to change the API before, so it will be in 6.x.
I'm currently busy adding the very last changes to 5.x, so I cannot give you an ETA.
Hello, I use a lot JSON Arduino Library and would like to know if it's possible to modify manually the Deserializer and Serializer to support MessagePack (kinda of binary JSON). Currently, the MessagePack library for Arduino is very hard and not intuitive to use.
As Message Pack contains the same structure as JSON, but with specific bytes to indicate what comes next (float, object, array and so on), I was trying to understand how Deserializer works when decoding strings to float, integer, boolean, etc.
Do you think is viable to manually modify the Deserializer to recognize a Message Pack structure by modifying the existing functions to "think" it's decoding JSON, but instead is decoding Messa Pack?
(I could just get a message in MessagePack and Serialize it to JSON and then apply this library but that would be too inefficient.)
Thanks.
PS: The Serializer I think would be a lot easier to override the existing function to write MessagePack syntax as brackets and commas can be replaced with specific bytes.
The text was updated successfully, but these errors were encountered: