[lambda2json]
lambda2json is a core slot, one of the keywords of the Hyperlambda language, in Hyperlambda, the language of Magic Cloud. Transforms a lambda hierarchy into JSON.
- Value (
node-list,lambda-tree), required: Expression selecting the lambda hierarchy to transform - Returns: Resolves to the generated JSON string
Arguments
Required arguments come first, then the optional ones in the order they are declared.
| Argument | Type | Required | Description |
|---|---|---|---|
[format] |
bool | no | Whether to pretty-print the JSON output. Default: false. |
Guide: How to use [lambda2json]
JSON declaration
This is the complete declaration of lambda2json, as the running system describes it. It is also published as slot.json.
JSON declaration
{
"name": "lambda2json",
"description": "Transforms a lambda hierarchy into JSON",
"signature": {
"input": {
"kind": "node-list,lambda-tree",
"description": "Expression selecting the lambda hierarchy to transform",
"required": true,
"mode": "Expression"
},
"children": {
"format": {
"type": "bool",
"description": "Whether to pretty-print the JSON output",
"required": false,
"mode": "ValueOrExpression",
"cardinality": "ZeroOrOne",
"default": "false",
"role": "Option",
"projection": "Value"
}
},
"output": {
"mode": "Value",
"kind": "json,text",
"description": "Resolves to the generated JSON string"
}
}
}
← lambda2hyper |
all core slots | lambda2xml → |