code-sharp / newtonsoft.msgpack Goto Github PK
View Code? Open in Web Editor NEWBridging between Newtonsoft.Json and msgpack-cli
License: Other
Bridging between Newtonsoft.Json and msgpack-cli
License: Other
What is the motivation for this statement?
This supports only Msgpack Map serialization, I think that array serialization doesn't really fit here.
Hi,
Really nice package! Just what I was looking for.
However, we could not integrate the package since we are using Newtonsoft.Json 7.0.1 and the package has a dependency for Newtosoft.Json < 7.0.
Will there be an update soon?
Thanks
/Bruno
What do you think about serializing numeric types with the smallest lossless format? For example, if I have a double[]
of length N containing 0's and 1's, its contents (after the header) would be stored using N bytes, because 0 and 1 fit losslessly into a positive fixnum. If I try to then deserialize to a double[]
, that would work.
msgpack-cli is already doing this for ints and uints internally.
The implementation of DoubleMsgPackValue.Pack
would become something logically similar to this:
public override void Pack(Packer packer)
{
if (this.Value == (int)this.Value)
{
packer.Pack(this.Value < 0 ? (int)this.Value : (uint)this.Value);
}
else if (this.Value == (float)this.Value)
{
packer.Pack((float)this.Value);
}
else
{
packer.Pack(this.Value);
}
}
What are your thoughts? This could potentially be an optional configuration on the MessagePackWriter. I'd be willing to help out with this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.