[yaml2json]

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

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

Guide

How to use yaml2json

JSON declaration

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

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

← xml2lambda all core slots yaml2lambda →