I have a JSON array:
**
**
{
"Required" : true,
"Validation" : {
"MaxChars" : "40"
"MinChars" : "10"
}
}
**
**
The code now:
JSONObject formField = formListAdapter.formArray.getJSONObject(i);
if(formField.has("Required") && formField.getBoolean("Required") == true){
}
With the aforementioned code, I can check if in the JSON there is a field with the name "Required" and if this is true. But how can check if the Validation has an attribute inside? and how can I check the name and the value of it? I.e. how can I check the number of the MaxChars or MinChars?