title: How to use the json object 's field value(stored in the camunda context) in Camunda dmn input expression?
body: <p>We have a json object named <code>application</code> that is stored in the camunda context. In the dmn decision model, I want to use the field value from the stored json object as input expression in the dmn to evaluate the rule.</p>
  
  <p>Json model looks like this:</p>
  
  <pre><code>{
      "applicants": [
          {
              "age": 58,
              "city": "Vallda",
              "id": "1002406-1",
              "mainapplicant": true
          },
          {
              "age": 59,
              "city": "Vallda",
              "id": "1002406-2",
              "mainapplicant": false
          }
      ],
      "groupnbr": 120,
      "rate": 0.041
  }
  </code></pre>
  
  <p>I have tried javascript expression like: </p>
  
  <pre><code>var mainApplicant = application.applicants[0];
  mainApplicant.city;
  </code></pre>
  
  <p>But this is not working. </p>
  
  <p>Please suggest how can I use the field <em>city</em> from the first element in the array of <em>applicants</em> In java e.g. I could use:</p>
  
  <pre><code> application.applicants.get(0).city
  </code></pre>