mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
3 lines
306 B
JavaScript
3 lines
306 B
JavaScript
const v = { a: [1, "two", null, true], b: { c: 1.5 }, u: undefined, f: () => 1 }
|
|
const s = JSON.stringify(v)
|
|
return [s, JSON.stringify(v, null, 2), JSON.parse(s), JSON.stringify([undefined, () => 1]), JSON.stringify("q\"uote\n"), JSON.parse("[1, {\"x\": \"y\"}]"), JSON.stringify(undefined) === undefined]
|