Help centerConsole

Getting Started

IntroductionCreate a projectIntelliSense

AI Components

Getting started

Courier

Getting startedCommandsConfiguration
Upgrade

Canvas

ExpressionsFilters & functionsCanvasTemplatingVariables
absbatchcapitalizecolumnconvert_encodingdate_modifydatedefaultescapefilterfirstformatgroup_byimage_tagimage_urljoinjson_encodekeyslastlengthlowermapmergenl2brnumber_formatrawreading_timereducereplacereverseroundsliceslugsortspacelesssplitstriptagstitletrimupperurl_encodeDeprecated filters
Help centerConsole
DocumentationAPI ReferenceGuidesChangelog
CanvasFilters

keys

The keys filter returns the keys of an array.

It is useful when you want to iterate over the keys of an array:

{% for key in array | keys>
  ...
{% endfor>

Last updated on

json_encode

The json_encode filter returns the JSON representation of a value.

last

The last filter returns the last "element" of a sequence, a mapping, or a string.