Added validation failure of input JSON as error condition.