Friday, November 2, 2018

There is any serialization formats that maps all dotnet primitives types ?

I'm building a server side application that is supposed to receive unspecified kind of objects. Whatever their shape would be the parser will the the incoming input and transform it into a generic object, like what Newtonsoft does when its parsing without specifying the target type. The problem is what serialization protocol use, something already existing will be obliviously better so I don't have to write dozens of new serialization clients. Brief list of non-good protocol:

  • JSON: Anything is a string or a number, the client send a DateTime and you receive a string
  • Protobuf: Is by design against dynamic types
  • BSON: The better that I seen now but doesn't cover all types
  • capnproto: covers very few types
  • MessagePack: covers very few types
There is any serialization formats that maps all dotnet primitives types ? Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team