Implement a function jsonStringify(value) that converts a JavaScript value into a JSON string.
The function should:
Examples
jsonStringify({ a: 1, b: [2, 3] }); // '{"a":1,"b":[2,3]}' jsonStringify([1, { x: 2 }]); // '[1,{"x":2}]' jsonStringify({ a: undefined, b: 2 }); // '{"b":2}'
JavaScript Function
No test results yet
Click "Run" to execute tests