Skip Menu |

This queue is for tickets about the Hash-AsObject CPAN distribution.

Report information
The Basics
Id: 87989
Status: rejected
Priority: 0/
Queue: Hash-AsObject

Owner: Nobody in particular
Requestors: nebulous [...]

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)

Subject: TO_JSON
Download (untitled) / with headers
text/plain 320b
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! :)
Sorry, this doesn't fall within my conception of what Hash::AsObject is for.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to