Q. Identify the process done in the below code snippet
Code:
o = {x:1, y:{z:[false,null,""]}};
s = JSON.stringify(o);
p = JSON.parse(s);
β
Correct Answer: (B)
Object Serialization
Explanation: Object serialization is the process of converting an object’s state to a string from which it can later be restored.