21.) How do you access the second element of a JSON array [“apple”, “banana”, “cherry”]?
22.) How do you access the value “Alice” from the JSON object {“name”: “Alice”, “age”: 25}?
23.) What is the output of JSON.parse(‘[1, 2, , 4]’)?
24.) What is the output of JSON.stringify([1, undefined, 2])?
25.) What will be the output of this code?
JSON.stringify({ key1: "value1", key2: function() { return "value2"; } });
26.) What is the output of the following code?
JSON.stringify({ key: undefined, key2: "value" });