Instructions
Install the Json2Toon plugin in your Bubble app.
In your workflow add an action → Plugins → Convert JSON to TOON (server-side).
Set input_json to a JSON string or a dynamic expression that returns JSON text (type: text).
Read the action returns after it runs:
toon_output (text) — the converted TOON string.
error_message (text) — populated only if parsing/conversion failed.
Use toon_output in a Text element, save it to the database, or store it in a custom state (e.g. Result of step X's toon_output).
Quick encoding rules:
Nested objects → indented (two spaces per level).
Array of primitives → key[N]: a,b,c.
Array of uniform objects → key[N]{field1,field2}: then rows of value1,value2.
Non-uniform arrays → list items (-) with each item encoded as object lines.
Strings with :, \n, " or (in tabular rows) , are quoted and escaped.
null becomes null.
On invalid JSON: toon_output = "" and error_message contains the parse error.
Troubleshooting: if both outputs are empty, confirm the action executed in the workflow logs and that input_json is valid JSON.