JSON.hpackJSON压缩算法
JSON.hpack 是一个用来压缩 JSON 数据的工具包和算法,目前提供了 PHP 和 C# 两种语言的版本。
压缩前:
[{ name : "Andrea", age : 31, gender : "Male", skilled : true }, { name : "Eva", age : 27, gender : "Female", skilled : true }, { name : "Daniele", age : 26, gender : "Male", skilled : false }]
压缩后:
[["name","age","gender","skilled"],["Andrea",31,"Male",true],["Eva",27,"Female",true],["Daniele",26,"Male",false]]
压缩效果:
评论