Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/morlay/jsoncue
https://github.com/morlay/jsoncue
codemirror6 configuration cue json
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/morlay/jsoncue
- Owner: morlay
- Created: 2024-04-17T10:04:20.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-18T08:56:20.000Z (9 months ago)
- Last Synced: 2024-04-18T12:26:38.817Z (9 months 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}
}```