Returns the JSON representation of the given Program.
(program: Program)
| 82 | |
| 83 | |
| 84 | def _program_to_json(program: Program) -> str: |
| 85 | """Returns the JSON representation of the given Program.""" |
| 86 | return json.dumps(program, cls=_DataclassEncoder) |
| 87 | |
| 88 | |
| 89 | def _json_to_program(program_json: bytes) -> Program: |
no outgoing calls