Magic Cloud

An Open Source Application Generator

Magic Lambda Json

This project provides JSON helper slots for Magic. More specifically, it provides the following slots.


.json:@"{""property"": ""value""}"

The [lambda2json] slot can optionally take a [format] argument, with a boolean “true” value, which implies the resulting JSON will be indented and nicely formated, making it more readable.

Notice - Although all JSON can be transformed into lambda, the opposite is not necessarily true. This is because lambda allows for having multiple nodes with the same name for instance, which would result in a JSON object with multiple properties having the same key. Hence, have this in mind as you persist your lambda objects into JSON.

Project website

The source code for this repository can be found at, and you can provide feedback, provide bug reports, etc at the same place.

Quality gates


This project is the copyright(c) 2020-2021 of Thomas Hansen, and is licensed under the terms of the LGPL version 3, as published by the Free Software Foundation. See the enclosed LICENSE file for details.