Here is my JSON object
{
    "errors": {
        "product_name": {
            "message": "Product name is required",
            "name": "ValidatorError"
        },
        "category": {
            "message": "Category is required",
            "name": "ValidatorError"
        }
    }
}
My aim is to access the first "message", though it can be access via
 errors.product_name.message
this is not the goal, my goes is to get first message without using the "product_name" object, like
errors[0].message
 
     
    