πŸŸͺ JSON to Object

πŸŸͺ 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


  1. An HTTP Request block queries a weather API and returns a JSON text string on its response output.
  2. A JSON to Object block converts this string into a usable object.
  3. A Get from Object block then extracts the temperature key 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

Was this article helpful?

Share your feedback

Cancel

Thank you!