|
1 | | -let p1 = JSON.parseExn("{}", ~reviver=(k, v) => v) |
2 | | -let p2 = JSON.parseExnWithReviver("{}", (k, v) => v) |
| 1 | +let p1 = JSON.parseExn("{}", ~reviver=(_k, v) => v) |
| 2 | +let p2 = JSON.parseExnWithReviver("{}", (_k, v) => v) |
3 | 3 |
|
4 | 4 | let s1 = JSON.stringifyWithIndent(JSON.Object(dict{}), 2) |
5 | | -let s2 = JSON.stringifyWithReplacer(JSON.Number(1.), (k, v) => v) |
6 | | -let s3 = JSON.stringifyWithReplacerAndIndent(JSON.Boolean(true), (k, v) => v, 2) |
| 5 | +let s2 = JSON.stringifyWithReplacer(JSON.Number(1.), (_k, v) => v) |
| 6 | +let s3 = JSON.stringifyWithReplacerAndIndent(JSON.Boolean(true), (_k, v) => v, 2) |
7 | 7 | let s4 = JSON.stringifyWithFilter(JSON.Array([JSON.Number(1.)]), ["a"]) |
8 | 8 | let s5 = JSON.stringifyWithFilterAndIndent(JSON.Array([JSON.Number(1.)]), ["a"], 2) |
9 | 9 |
|
10 | 10 | let a1 = JSON.stringifyAnyWithIndent(1, 2) |
11 | | -let a2 = JSON.stringifyAnyWithReplacer(1, (k, v) => v) |
12 | | -let a3 = JSON.stringifyAnyWithReplacerAndIndent(1, (k, v) => v, 2) |
| 11 | +let a2 = JSON.stringifyAnyWithReplacer(1, (_k, v) => v) |
| 12 | +let a3 = JSON.stringifyAnyWithReplacerAndIndent(1, (_k, v) => v, 2) |
13 | 13 | let a4 = JSON.stringifyAnyWithFilter(1, ["a"]) |
14 | 14 | let a5 = JSON.stringifyAnyWithFilterAndIndent(1, ["a"], 2) |
15 | 15 |
|
0 commit comments