rgcl / jsonpack Goto Github PK
View Code? Open in Web Editor NEWA compression algorithm for JSON
License: Other
A compression algorithm for JSON
License: Other
after transformation see[https://github.com/JoiLa/gjsonpack]
Given that a major use case of such a tool is to decrease the time spent downloading a large file, instead spending that time decoding that file, it would seem appropriate that the unpack function be asynchronous. e.g. that it interrupts itself occasionally to let the browser run (using a settimeout callback, perhaps one that calls back to itself right at the beginning of each recursion of recursiveUnpackerParser) and allows its progress to be externally tracked (perhaps by allowing the user to set an onprogress event listener). Perhaps this would not necessarily always need to be the default behavior, but it should be an option.
I just did a bower install sapienlab/jsonpack
and included main.js
in my build. I get:
Uncaught Error: Cannot find module 'function (define) {
<snip all code from main.js>
What's causing that?
Hi,
We are facing issue with upack ok IE browser. While unpacking its using for..in loop , for...in looks at the array as an object, and therefore properties like indexOf or length may be included in the loop, and failing to decode in IE.
Hello, tomorrow I'll add some tests using mocha and Travis to monitor. If anyone has any suggestions on another stack test as Jasmine or theintern.io please let me know;)
If we jsonpack response from mogodb documents, unable to unpack readable 'objectId'. help!
var data = { x: 1234 };
var str = JSON.stringify(data);
jsonpack.unpack(jsonpack.pack( data ))
// returns an object { "x": 1234 }
jsonpack.unpack(jsonpack.pack( str ))
// returns an object { "x": 1234 }
// expected return value: a string "{ \"x\": 1234 }"
It looks that jsonpack doesn't work with Date objects
expected:
"created_at": "2019-10-20T17:36:29.034Z",
got
"created_at": {}
A review of this repository must be done. Any help in performance tests will be welcome :)
Since zlib can use preset dictionary (http://www.zlib.org/rfc-zlib.html), we can make use of it for better json data compress.
The steps are:
The beauty of this solution is, it's a standard gzip + json compress method which can also rich same compress rate of jsonpack.
In your readme, it links to your clone of CPM but this appears to be a dead link. Maybe update the link to an available one instead?
Are there any implementations in other languages? We'd like to maintain compatibility across code bases, and I haven't been able to find any other implementations. C#, Java, etc.
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.