我有一个大约2-3 MB的json文件。当我们发送到客户端并在客户端解压缩时,我想在服务器端压缩这个json。
My Client基于AngularJS SPA构建,并从Web API获取json输出。
{
"firstName": "John",
"lastName": "Smith",
"age": 25,
"address":
{
"streetAddress": "21 2nd Street",
"city": "New York",
"state": "NY",
"postalCode": "10021"
},
"phoneNumber":
[
{
"type": "home",
"number": "212 555-1234"
},
{
"type": "fax",
"number": "646 555-4567"
}
]
}