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] |
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):
Testing my_variable | type: variable_type | [my_variable serialized as JSON] |