TOC Prev Next

JSON Sugar and other Goodness

Curly Braces

The outer curly braces may be omitted for the top-level struct. CUE also allows both, which has a specific meaning. We will come back to that later.

curly.cue:

one: 1
two: 2

"two-and-a-half": 2.5

$ cue export curly.cue

{
    "one": 1,
    "two": 2,
    "two-and-a-half": 2.5
}