Add method to parse JSON response for error nodes