JsonContext
- class cometa.json.json_context.JsonContext(value)[source]
Bases:
IntEnumEnum representing the current context of the JSON writer.
This enum defines the possible states of the JSON writer, indicating whether it is at the root level, inside an object, or inside an array.
- ROOT = 0
The writer is at the root level (no context set).
- OBJECT = 1
The writer is inside an object context.
- ARRAY = 2
The writer is inside an array context.