Closed jwrightecs closed 4 years ago
Interesting bug. Thanks. I think the fix has two parts:
convert_blessed()
to the JSON encoder attributeTO_JSON()
to json_ld_data()
in the classI'll look at getting a fix out in the next couple of days.
It took more than a "couple of days", I'm afraid, but I've just released version 0.0.17 which fixes this bug. It'll be on CPAN soon. Sorry for the delay and thanks for the report.
Many (most) of the properties of schema.org schemata are multivalued, including nested ones, for example Organization.employees, Person.children, MusicComposition.composer (https://schema.org/Person#music-2), but such properties seem to not be supported by this role:
Returns the error encountered object 'LD::Employee=HASH(0x27ab040)', but neither allow_blessed, convert_blessed nor allow_tags settings are enabled (or TO_JSON/FREEZE method missing) at /home/perl/perl5/lib/perl5/MooX/Role/JSON_LD.pm line 233