e uri_unescape);
use POSIX qw(strftime);
use Date::Parse qw();
use File::Spec qw();
use JSON::XS qw();
use MIME::Base64 qw();
use Authen::NZRealMe::CommonURIs qw(URI NS_PAIR);
use Authe
:Identity',
ivs => 'urn:nzl:govt:ict:stds:authn:safeb64:attribute:igovt:IVS:Assertion:JSON:Identity',
avs => 'urn:nzl:govt:ict:stds:authn:safeb64:attribute:NZPost:AVS:Assertion
my $json = JSON::XS::decode_json($data);
my $dob = $json->{dateOfBirth} or warn "dateOfBirth field is not in JSON IVS";
my $name = $json->{name} or warn "name field is not in JSON IVS