The json.Serializer class
The json.Serializer
class provides methods to serialize Genero BDL
variable to JSON objects and vice versa.
The
json.Serializer
class is provided in the json
C-Extension library. To use the
json.Serializer
class, you must import the json
package in your
program:IMPORT json
The
json.Serializer
class provides methods to perform the following:- Serialize Genero BDL variables to JSON objects.
- Deserialize JSON objects to Genero BDL variables.
Implicit and explicit conversion of JSON to BDL
It is important to understand the difference in the behavior of
json.serializer
and util.JSON
in terms of implicit and
explicit conversion of JSON to Genero BDL conversion. json.Serializer
implements strict, schema-driven conversion.util.json
implements permissive, dynamic conversion.