e XML::Twig;
use Data::SCORM::Organization;
use Data::SCORM::Item;
use Data::SCORM::Resource;
use JSON::Any;
use Data::Dumper;
=head1 NAME
Data::SCORM::Manifest - represent the Manifest
=head1 SYN
rn $class->new(%data);
}
sub as_hoh {
# turn this into a normal perl data structure that we can jsonnify
my ($self, $url_base) = @_;
$url_base ||= '';
my %organizations = map {
my $org_name =
zations,
};
}
sub to_json {
my $self = shift;
my $hoh = $self->as_hoh(@_); # e.g. the $url_base param
my $js = JSON::Any->new( allow_blessed => 1 );
return $js->to_json($hoh);
}
# __PACKAGE__