As
Corion already told you, adding a field with the class name might help you. Then you could write a subroutine that walks the de-serialized tree, and blesses the references whenever it finds the
blessed hash key.
Of course that requires control over how the JSON is generated.
Perl 6 - links to (nearly) everything that is Perl 6.