FLAT
FLAT
Couper
Sevenval Technologies
Docker Image
Github
master
FLAT
Cookbook
Reference
Functions
xml-parse()
urldecode(), url-decode()
ends-with()
join()
split()
content()
array()
json-to-csv()
decrypt-xml()
json-stringify()
replace()
base64-encode()
verify-signature()
matches()
body()
ldap-query()
trim()
calc-signature()
array-reverse()
sort()
file-exists()
decrypt()
get-log()
jwt-encode()
apply-codecs()
base64-decode()
uuid3() and uuid4()
lookup()
json-to-xml()
fit-log()
toupper()
fit-document()
tolower()
has-class()
encrypt()
urlencode(), url-encode()
unixtime()
fit-serialize()
xml-to-json()
jwt-decode()
json-doc()
html-parse()
verify-xmldsig()
ldap-lookup()
capitalize-first()
md5()
json-parse()
Flow Actions
OpenAPI / Swagger Integration
Templating
Variables
Flow
Configuration
Testing
flat CLI
Debugging
Administration
Tutorial
Changelog
Powered by GitBook

array()

node-set array([node-set nodes])

wraps the nodes of the node set nodes in a <json array="">…</json> structure, so that they can be used as an array in a JSON Template.

if the nodes contain an attribute (e.g. a="b"), it will be converted to an element <value name="a">b</value>), so that key and value are easily accessible in the template.

Example

JSON:

{"users": [ {"name": "Alice"},{"name": "Bob"}]}

Template-Action:

<template>
{ "names": {{ array(users//name) }} }
</template>

Output:

{ "names": ["Alice","Bob"] }
Previous
content()
Next
json-to-csv()
Last updated 2 years ago
Edit on GitHub