Pluxbox Logo

JSON encode block

Encode any value to a JSON text.

Input

  • Execute (A value that when Truthy, will execute this block)
  • Value (The data (of any type) that should be encoded)

Output

  • Value (An valid JSON string)

Example

input: An object of {name: 'doe', age: 10} output: a string of '{"name": "doe", "age": 10}'