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".
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".