Skip to main content

Convert Text to JSON

Command description

Parses JSON text into a Python object.

Command Input Parameters

input parametersInput parameter typeDescription
TextstrText to convert to a JSON object

Command Output Parameters

Output parametersOutput parameter typeDescription
JSON ObjectanyParsed 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, and null become their corresponding Python values.