ZF2 apigility - How can we validate collections in json data
问题 How can I get validated json value using Apigility. For example, I need to get validated user_id under users collection in the following json data. { "log_type": "split food", "meal_type": "Break Fast", "meal_date": "12-2-2015", "users": [ { "user_id": 1, "food_details": [ { "food_id":101 } ] } ] } I know fields can be validated through apigility but here is from json. Thank you 回答1: You should look into the documentation of ZF2 validation for validating (form) collections. Some documentation