title: ZF2 apigility - How can we validate collections in json data
body: <p>How can I get validated json value using Apigility. For example, I need to get validated <code>user_id</code> under <code>users</code> collection in the following json data.</p>
  
  <pre><code>{   
      "log_type": "split food",   
      "meal_type": "Break Fast",  
      "meal_date": "12-2-2015",   
      "users": [
          {
              "user_id": 1,
              "food_details": [
                  {
                     "food_id":101
                  }
              ]
          }
      ] 
  }
  </code></pre>
  
  <p>I know fields can be validated through apigility but here is from json.</p>
  
  <p>Thank you</p>