Convert Text to JSON
Command description
Parses JSON text into a Python object.
Command Input Parameters
| input parameters | Input parameter type | Description |
|---|---|---|
| Text | str | Text to convert to a JSON object |
Command Output Parameters
| Output parameters | Output parameter type | Description |
|---|---|---|
| JSON Object | any | Parsed Python value: dict, list, str, number, bool, or None |
JSON workflow example
[
{
"ins": "Convert Text to JSON",
"in": {
"Text": "'{\"name\":\"Runavelo\"}'"
},
"out": {
"JSON Object": "json_obj"
}
}
]
AI Workflow Generation Notes
- Input must be standard JSON text, with double quotes for key names and strings.
- Runtime parsing uses
json.loads; the return type depends on the JSON value. Objects become dictionaries, arrays become lists, and strings, numbers, Boolean values, andnullbecome their corresponding Python values.