check for $json['reason']