Changes between Version 30 and Version 31 of pyson


Ignore:
Timestamp:
05/18/21 11:20:25 (4 years ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pyson

    v30 v31  
    2525The arguments in the {{{__init__}}} function are matched to the json fields.
    2626The arguments in the {{{__init__}}} must be fully typed, and these types are used to determine how to interpret the json content.
     27
     28You can use {{{typing.Any}}} to indicate you expect any PRIMITIVE type (int, str, dict, etc).
     29For security reasons, pyson always requires explicit class for polymorphism and never deserializes just any class, only primitives can be handled this way.
    2730
    2831=== Deserialization