i have a mobile project and i want get a “very” “very” complex json’s in yii rest api, i had to checking and parse all items in json for type(int or string or …) and exist a specific item or if not exist a item send a error to mobile request, is in YiiFramework class for parse Json Query or a Query verify or a mapper for this work? i do’nt want use manual code like “for” or “foreach” for resolve this problem, speed for this work is very important and Json Query schemas are very complex. please help me…
if you are using Yii2’s REST api implementation, parsing JSON body is already available and you can just put this inside your model and perform standard input validations