32 lines
450 B
Markdown
32 lines
450 B
Markdown
# export_graph_json
|
|
|
|
## API Definition
|
|
|
|
```python
|
|
def export_graph_json(graph: OperationGraph, indent: int = 2) -> str
|
|
```
|
|
|
|
*Source: serializer.py*
|
|
|
|
## Import Surface
|
|
|
|
- top-level: `from simplecadapi import export_graph_json`
|
|
|
|
## Description
|
|
|
|
Export an OperationGraph to a JSON string.
|
|
|
|
## Parameters
|
|
|
|
### graph
|
|
|
|
- **Description**: The graph to export.
|
|
|
|
### indent
|
|
|
|
- **Description**: JSON indentation level.
|
|
|
|
## Returns
|
|
|
|
JSON string representation.
|