title: REST - How to minify Json Response
body: <p>I have a JAVA REST service that returns a list of objects. Each object contains name, description, code. 
  I want to minify response json</p>
  
  <pre><code>{
      "objects": {
          "count": 10000,
          "list": [
              {
                  "name": "1",
                  "description": "foo",
                  "code": "foo",
              },
              {
                  "name": "2",
                  "description": "bar",
                  "code": "bar",
              },
              ...... (1.000 items)
          ]
      }
  }
  </code></pre>
  
  <p>TO:</p>
  
  <pre><code>{
      "a": {
          "b": 1000,
          "c": "a:objects,b:count,c:mapping,d:list,e:name,f:description,g:code",
          "d": [
              {
                  "e": "1",
                  "f": "foo",
                  "g": "foo",
              },
              {
                  "e": "2",
                  "f": "bar",
                  "g": "bar",
              },
              ...... (1.000 items)
          ]
      }
  }
  </code></pre>
  
  <p>how can i do it, thanks.</p>