in reply to How to encode/decode a class inside a class in JSON
Just a WAG, but have you tried calling allow_blessed(1) on your JSON instance?
Edit: Never mind me it doesn't affect decode. I think you need to look at the section "OBJECT SERIALIZATION" and it's discussion of allow_tags and needing a FREEZE method instead of TO_JSON.
The cake is a lie.
The cake is a lie.
The cake is a lie.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to encode/decode a class inside a class in JSON
by Nordikelt (Novice) on Aug 20, 2020 at 03:18 UTC |