Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: How to encode/decode a class inside a class in JSON

by Anonymous Monk
on Aug 20, 2020 at 18:33 UTC ( #11120934=note: print w/replies, xml ) Need Help??


in reply to How to encode/decode a class inside a class in JSON

See above: "haj" is right. In order to cause something to "behave as a Perl object," you must bless() it, and the JSON deserializer by-itself does not know how to do that (and cannot be expected to).
  • Comment on Re: How to encode/decode a class inside a class in JSON

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11120934]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2021-05-07 17:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (93 votes). Check out past polls.

    Notices?