[json2lambda-stream]

json2lambda-stream is a core slot, one of the keywords of the Hyperlambda language, in Hyperlambda, the language of Magic Cloud. Transforms JSON stream content into a lambda hierarchy.

  • Value (stream), required: JSON stream to transform
  • Returns: Resolves to the parsed lambda hierarchy as child nodes

Arguments

Required arguments come first, then the optional ones in the order they are declared.

Argument Type Required Description
[encoding] string no Text encoding used to read the JSON stream. Default: utf-8.

Guide: How to use [json2lambda-stream]

JSON declaration

This is the complete declaration of json2lambda-stream, as the running system describes it. It is also published as slot.json.

JSON declaration
{
  "name": "json2lambda-stream",
  "description": "Transforms JSON stream content into a lambda hierarchy",
  "signature": {
    "input": {
      "kind": "stream",
      "description": "JSON stream to transform",
      "required": true,
      "mode": "Expression"
    },
    "children": {
      "encoding": {
        "type": "string",
        "kind": "text-encoding",
        "description": "Text encoding used to read the JSON stream",
        "required": false,
        "mode": "ValueOrExpression",
        "cardinality": "ZeroOrOne",
        "default": "utf-8",
        "role": "Option",
        "projection": "Value"
      }
    },
    "output": {
      "mode": "Lambda",
      "kind": "lambda-tree",
      "description": "Resolves to the parsed lambda hierarchy as child nodes"
    }
  }
}

← json2lambda all core slots json2yaml →