Skip to search.
json · JSON JavaScript Object Notation

Group Information

  • Members: 530
  • Category: Data Formats
  • Founded: Jul 19, 2005
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

  Messages Help
Advanced
JSON.hpack - JavaScript, PHP, C# (Python Soon)   Message List  
Reply Message #1258 of 1841 |
(it was a direct message, I have copied and pasted here as well)
Good afternoon Mr Douglas Crockford,
I wonder if you have seen already my latest JSON related project, called
JSON.hpack,
an Homogeneous Collection Packer.

As summary, hpack transform a JSON list of objects, usually a database
resultSet
[{name:value},{name:value},{name:value}]
into an array only collection with columns info in the special index 0

[[name],[value],[value],[value]]

With 4 different compression levels, it is able to cut down number of
characters from 75Kb to 9Kb ( no gzip ) and to make big client side
elaborated resultSets send via Ajax possible without having gzip/deflate
compression on client side. The JSON.hunpack method is extremely fast and
compatible with every chosed compression level.

I hope it will find a place into json.org and I'd love to read a comment
about it as soon as you have some free minute (... even if I know it is
something hard to find in IT).

Blog Entry:
http://webreflection.blogspot.com/2009/05/re-introduction-to-jsonhpack.html

Github Project:
http://github.com/WebReflection/json.hpack/tree/master

Here is a live demo page:
http://www.3site.eu/examples/json.hpack/test/

Best Regards,
Andrea Giammarchi


[Non-text portions of this message have been removed]




Wed May 27, 2009 1:27 pm

an_red...
Offline Offline
Send Email Send Email

Message #1258 of 1841 |
Expand Messages Author Sort by Date

(it was a direct message, I have copied and pasted here as well) Good afternoon Mr Douglas Crockford, I wonder if you have seen already my latest JSON related...
Andrea Giammarchi
an_red... Offline Send Email
May 27, 2009
1:27 pm

What level of difference is there between raw database result set name value paired that has been gzipped and hunpack'ed data that has been gzipped? I know...
Kris Zyp
kriszyp Offline Send Email
May 27, 2009
1:38 pm

Kris, hope I got your question. Basically, as you said gzip is able to reduce drastically redundant words (in JSON case, every collection repeated key) This...
an_red@...
an_red... Offline Send Email
May 27, 2009
3:51 pm

On Wed, May 27, 2009 at 6:27 AM, Andrea Giammarchi ... This seems like a simple and possibly sensible convention. But in addition to having an implementation,...
Tatu Saloranta
cowtowncoder Offline Send Email
May 27, 2009
7:09 pm

Tatu, gzip works faster in any case over JSON.hpack(ed) stuff for the same reason JSON.stringify / parse is faster over JSON.hpacked stuff, less characters to...
an_red@...
an_red... Offline Send Email
May 28, 2009
8:26 am

On Thu, May 28, 2009 at 1:25 AM, an_red@... ... Yes, certainly, not arguing with that, wrt. speed. ... No doubt, it should be a fairly simple...
Tatu Saloranta
cowtowncoder Offline Send Email
May 28, 2009
11:40 pm

Is something like this enough? http://wiki.github.com/WebReflection/json.hpack/specs-details Best Regards. Andrea Giammarchi...
an_red@...
an_red... Offline Send Email
May 29, 2009
10:30 am

On Fri, May 29, 2009 at 3:29 AM, an_red@... ... I think so (didn't read in detail) -- and if there are questions, it's easy to contact you and suggest...
Tatu Saloranta
cowtowncoder Offline Send Email
May 29, 2009
5:23 pm
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help