[json2yaml]

json2yaml is a core slot, one of the keywords of the Hyperlambda language, in Hyperlambda, the language of Magic Cloud. Transforms JSON into YAML.

  • Value (json), required: JSON text to transform
  • Returns: Resolves to the generated YAML string

Guide: How to use [json2yaml]

JSON declaration

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

JSON declaration
{
  "name": "json2yaml",
  "description": "Transforms JSON into YAML",
  "signature": {
    "input": {
      "kind": "json",
      "description": "JSON text to transform",
      "required": true,
      "mode": "ValueOrExpression"
    },
    "output": {
      "mode": "Value",
      "kind": "yaml,text",
      "description": "Resolves to the generated YAML string"
    }
  }
}

← json2lambda-stream all core slots lambda2csv →