2012-12-11 147 views
3

我有一個post請求這個JSON字符串回報,我在我的紅寶石軌道上:壓縮JSON字符串

{"a":[{"id":2816,"tr":990,"lub":"mattia1.lipreri","p":"0.20","b":"0"},{"id":2817,"tr":992,"lub":"mattia1.lipreri","p":"0.20","b":"0"},{"id":2818,"tr":993,"lub":"mattia1.lipreri","p":"0.20","b":"0"},{"id":2819,"tr":994,"lub":"mattia1.lipreri","p":"0.20","b":"0"},{"id":2820,"tr":995,"lub":"mattia1.lipreri","p":"0.20","b":"0"}]} 

我想知道是否有壓縮它的方式,可能與hpack或cjson,任何提示? 謝謝

+0

http://stackoverflow.com/questions/11997110/how-to-compress-json-with-gzip-in-rails-for-android – PriteshJ

回答