1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,49 +0,0 @@ |
1 |
-{ |
|
2 |
- flower: "sakura" |
|
3 |
- |
|
4 |
- // Live demo. |
|
5 |
- // Type either into the Hjson or JSON input |
|
6 |
- // to convert to the other format. |
|
7 |
- // Reload to reset. |
|
8 |
- |
|
9 |
- # comments are useful |
|
10 |
- # specify rate in requests/second |
|
11 |
- "rate": 1000 |
|
12 |
- |
|
13 |
- // maybe you prefer js style comments |
|
14 |
- /* or if you feel old fashioned */ |
|
15 |
- |
|
16 |
- # key names do not need to be placed in quotes |
|
17 |
- key: "value" |
|
18 |
- |
|
19 |
- # you don't need quotes for strings |
|
20 |
- text: look ma, no quotes! |
|
21 |
- |
|
22 |
- # note that for quoteless strings everything up |
|
23 |
- # to the next line is part of the string! |
|
24 |
- |
|
25 |
- # commas are optional |
|
26 |
- commas: |
|
27 |
- { |
|
28 |
- one: 1 |
|
29 |
- two: 2 |
|
30 |
- } |
|
31 |
- |
|
32 |
- # trailing commas are allowed |
|
33 |
- trailing: |
|
34 |
- { |
|
35 |
- one: 1, |
|
36 |
- two: 2, |
|
37 |
- } |
|
38 |
- |
|
39 |
- # multiline string |
|
40 |
- haiku: |
|
41 |
- ''' |
|
42 |
- JSON I love you. |
|
43 |
- But you strangle my expression. |
|
44 |
- This is so much better. |
|
45 |
- ''' |
|
46 |
- |
|
47 |
- # Obviously you can always use standard JSON syntax as well: |
|
48 |
- favNumbers: [ 1, 2, 3, 6, 42 ] |
|
49 |
-} |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,49 @@ |
1 |
+{ |
|
2 |
+ flower: "sakura" |
|
3 |
+ |
|
4 |
+ // Live demo. |
|
5 |
+ // Type either into the Hjson or JSON input |
|
6 |
+ // to convert to the other format. |
|
7 |
+ // Reload to reset. |
|
8 |
+ |
|
9 |
+ # comments are useful |
|
10 |
+ # specify rate in requests/second |
|
11 |
+ "rate": 1000 |
|
12 |
+ |
|
13 |
+ // maybe you prefer js style comments |
|
14 |
+ /* or if you feel old fashioned */ |
|
15 |
+ |
|
16 |
+ # key names do not need to be placed in quotes |
|
17 |
+ key: "value" |
|
18 |
+ |
|
19 |
+ # you don't need quotes for strings |
|
20 |
+ text: look ma, no quotes! |
|
21 |
+ |
|
22 |
+ # note that for quoteless strings everything up |
|
23 |
+ # to the next line is part of the string! |
|
24 |
+ |
|
25 |
+ # commas are optional |
|
26 |
+ commas: |
|
27 |
+ { |
|
28 |
+ one: 1 |
|
29 |
+ two: 2 |
|
30 |
+ } |
|
31 |
+ |
|
32 |
+ # trailing commas are allowed |
|
33 |
+ trailing: |
|
34 |
+ { |
|
35 |
+ one: 1, |
|
36 |
+ two: 2, |
|
37 |
+ } |
|
38 |
+ |
|
39 |
+ # multiline string |
|
40 |
+ haiku: |
|
41 |
+ ''' |
|
42 |
+ JSON I love you. |
|
43 |
+ But you strangle my expression. |
|
44 |
+ This is so much better. |
|
45 |
+ ''' |
|
46 |
+ |
|
47 |
+ # Obviously you can always use standard JSON syntax as well: |
|
48 |
+ favNumbers: [ 1, 2, 3, 6, 42 ] |
|
49 |
+} |