Subject: | TO_JSON |
It would be helpful to have TO_JSON defined so that the JSON modules can serialize directly as they do for hashrefs.
Right now I'm monkeypatching TO_JSON = sub { {%$_[0]} }. Sure, I could subclass, but Hash::AsObject is all about being lazy with hashes. Subclassing would go against the very foundation of the module! :)