TOC Prev Next

JSON Sugar and other Goodness

Folding of Single-Field Structs

CUE allows a shorthand for structs with single members.

outer middle inner: 3
{
    "outer": {
        "middle": {
            "inner": 3
        }
    }
}