Returning JSON object that has an element in an array : I want to bring back the error associated with the field 'firstname' but I can't figure out how to reference the correct branch of the json.

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-js -->

    { 
    "_original":{ 
    "firstname":"1",
    "lastname":"1",
    "email":"1@1.com",
    "password":"1"
    },
    "details":[ 
      { 
        "message":"\"firstname\" length must be at least 3 characters long",
        "path":[ 
        "firstname"
        ],
        "type":"string.min",
        "context":{ 
          "limit":3,
          "value":"1",
          "label":"firstname",
          "key":"firstname"
        }
    },
    { 
    "message":"\"lastname\" length must be at least 3 characters long",
    "path":[ 
    "lastname"
    ],
    "type":"string.min",
    "context":{ 
    "limit":3,
    "value":"1",
    "label":"lastname",
    "key":"lastname"
    }
    }
    ]
    }

<!-- end snippet -->

How do I return the indented object in the details array? I am searching on path:["firstname"]

