https://github.com/morlay/jsoncue
https://github.com/morlay/jsoncue
codemirror6 configuration cue json
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/morlay/jsoncue
- Owner: morlay
- Created: 2024-04-17T10:04:20.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-18T08:56:20.000Z (almost 2 years ago)
- Last Synced: 2025-01-08T10:48:00.615Z (about 1 year ago)
- Topics: codemirror6, configuration, cue, json
- Language: TypeScript
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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}
}
```