title: How to assign values to nested object in freemarker
body: <p>This could be simple but i couldn't find it on internet.
  I have nested object in freemarker as below which has multiple key i am not able to assign value to more than one key I am able to assign value to only one key</p>
  
  <pre><code>&lt;#assign modifiedObjectChng = {
      "beforeDep": {
          "range": [],
          "newTravelDate": "",
          "reissueAllowed": false,
          "changeAllowed": false,
          "maxPenality": ""
  },
  "afterDep": {
          "range": [],
          "newTravelDate": "",
          "reissueAllowed": false,
          "changeAllowed": false,
          "maxPenality": ""
  }
  }&gt;
  &lt;#assign modifiedObjectChng = modifiedObjectChng + { "beforeDep" : {"newTravelDate" : "AAA" }}&gt;
  &lt;#assign modifiedObjectChng = modifiedObjectChng + { "beforeDep" : {"reissueAllowed" : "BBB" }}&gt;
  
  ${modifiedObjectChng.beforeDep.newTravelDate} //Output : error following has evaluated to null
  ${modifiedObjectChng.beforeDep.reissueAllowed} // gives correct result
  </code></pre>
  
  <p>My problem is how will i assign value to multiple keys i am able to do with only one key</p>
  
  <p>Thanks in advance</p>