πͺ JSON to Object
πͺ JSON to Object
The JSON to Object block converts a text string in JSON format (for example received from an API or a Webhook) into an actual Object variable, directly usable by Celestory's other Object blocks (Get from Object, Loop through Object, etc.).
This is the typical entry point for using the response of an HTTP Request or Voltask Webhook block in the rest of the graph.
π₯ Inputs
- json (Text): The JSON-formatted text string to convert (e.g.
{"name": "Alice", "score": 1200}).
π€ Outputs
- object (Object): The resulting Object variable, ready to be read with the other Object blocks.
π‘ Example
Scenario: Using the response of a weather API
- An HTTP Request block queries a weather API and returns a JSON text string on its
responseoutput. - A JSON to Object block converts this string into a usable object.
- A Get from Object block then extracts the
temperaturekey to display it to the player.
βοΈ Technical Details
- Internal ID:
jsonToObject - Value block, not a flow block: this block has no stream input or output (in/out). It plugs directly into the input of another block that expects an Object (e.g. Get from Object), with no separate step to connect on the canvas.
- Difference with "Decode JSON": This block specifically produces an Object-type variable (usable with the Object blocks), whereas "Decode JSON" breaks the JSON down into individual simple variables.
- Validation: On invalid JSON, the block simply returns an empty object, with no visible warning to the player β check your data upstream if the source isn't reliable.
Documented version: v1
Updated on: 06/09/2026
Thank you!
