-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.yason
51 lines (37 loc) · 974 Bytes
/
test.yason
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
// comments
/* yeye */
// we are fully json compatible!
"foo": "bar",
// quotes can change
'yey': 'single',
// no need to quote keys tho
key: 'val',
list: [
1, 2, 3, // trailing commas are good
],
// speaking of commas, who needs commas?
foo: 1
baz: 2
// as long as values are separated by whitespace, they are valid
// you can even do some weird stuff like this, but I wouldn't advise it
this: 1 that: 2 those: 3
// for... reasons, strings are multiline
long: '
hey there, this is a long string
notice how we need to \'escape\' single quotes
the only problem with this is that it doesn\'t trim those newlines and
leading whitespace, which brings me to...
'
// backticks!
multiline: `
hey there, this is a long string
the benefit of this is that it will trim those newlines and leading
spaces
but it still preserves other indentation
- like this list
or this:
- another list
some stuff here for testing
`
}