Skip Menu |

This queue is for tickets about the JSON-PP CPAN distribution.

Report information
The Basics
Id: 84819
Status: new
Priority: 0/
Queue: JSON-PP

People
Owner: Nobody in particular
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

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



Subject: Why was as_nonblessed obsoleted?
Hi, I've always had a problem with JSON::PP and blessed objects.  Seeing as how JSON has no agreed upon way to represent objects, I often want it to just dump blessed objects as normal references.  I've never found a good way to do that short of writing UNIVERSAL::TO_JSON.

Poking around in the code, I recently found as_nonblessed does exactly what I want.  I see it was experimental and then removed.  Could it be restored?  That would provide me with a backwards compatible means of dumping structures which contain objects.

Alternatively, I'd like some way to safely dump data structures which may contain objects without having the objects end up as "null".