Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/morlay/jsoncue


https://github.com/morlay/jsoncue

codemirror6 configuration cue json

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# JSONCue

[Cue-lang](https://cuelang.org/) syntax compatible, but just static values.

```cue
// string value
str: "str"

// multiline string value
mlStr: """
1
22
333
"""

// bytes value
// which will base64 encode when JSON.stringify
bytes: '{}'

// multiline bytes value
mlBytes: '''
a:
b: 1
'''

// integer value
int: 1

// float value
float: 1.1

// array value
array: [
true,
false,
null,
]

// nested value
nested: a: {
// inline
b: {c: 1, d: 2}
}

```