/
dump_variable

dump_variable

Dumps a variable in collapsable JSON format in the console log.

Input:

{{ my_variable | dump_variable }}

Output (in the console in your browser development tools):

Plate Variable Dump | type: variable_type | [my_variable serialized as JSON]

Custom label

The standard label is “Plate Variable Dump”. It is also possible to set your own label:

{{ my_variable | dump_variable: "Testing my_variable" }}

Output (in the console in your browser development tools):

 

Related content

to_json
to_json
More like this
session
session
More like this
from_json
from_json
More like this
set_session
set_session
More like this
form_input_name
form_input_name
More like this
Objects
Objects
More like this