title: How to use JSON Stringify when fields are own object types?
body: <p><strong>EDIT: Something like this, but this is not working either, but there is the problem I think</strong></p>
  
  <pre><code>var stringifyObj = JSON.stringify({
        "addressAddressId":$('#address').val(){ 
            "cityId:"$('#city').val(){
                  "postalCode":$('#postalCode').val() 
             } 
        }
  });     
  </code></pre>
  
  <hr>
  
  <p>*<em>When I generate test client in Netbeans, JSON-structure (GET/JSON) is like that, but how can I code that with Javascipt and Strinfy-function? *</em></p>
  
  <pre><code>    "addressAddressId": {
          "addressId": 1,
          "address": "Järnvägen 2",
          "address2": null,
          "district": null,
          "postalCode": "20360",
          "phone": null,
          "coordinates": null,
          "latitude": null,
          "longitude": null,
          "directions": null,
          "description": null,
          "addrZipCityCountry": null,
          "lastUpdated": 1361754860000,
          "cityId": {
              "cityId": 1,
              "city": "",
              "lastUpdate": 1361754850000,
              "countryCountryId": {
                  "countryId": 1,
                  "country": "Sweden",
                  "lastUpdate": 1361754837000
              }
          }
      },
  </code></pre>
  
  <p><strong>QUESTION</strong></p>
  
  <ol>
  <li>What is the correct syntax when using JSON.stringify in case of own
  object type like City-object inside of Address-object?</li>
  <li>Should I add every field to json if not using
  @JsonIgnoreProperties({""})? I just need address, city and postal
  code. address is type of Address with field String address in server
  side, City is type of City includes String-field for city name etc.</li>
  </ol>