string body([string request-id])
When called without a parameter, the function returns the body for the request with the ID main
, which is the default ID for an .
<flow>
<request>
{"url": "https://example.com/json"}
</request>
<request>
{"id": "xml", "url": "https://example.com/xml"}
</request>
<eval out="$json">json-parse(body())</eval>
<eval out="$dom">xml-parse(body('xml'))</eval>
…
</flow>