Question discussion

Identify the process done in the below code snippeto = {x:1, y:{z:[false,null,""]}}; s = JSON.stringify(o); p = JSON.parse(s);

316284Medium 1 reply 1,552 views
21
Identify the process done in the below code snippeto = {x:1, y:{z:[false,null,""]}}; s = JSON.stringify(o); p = JSON.parse(s);
  • AObject Encapsulation
  • BObject Serialization
  • CObject Abstraction
  • DObject Encoding
Correct answer: B

Discussion 1

0
CCommunity
Object Serialization

Object serialization is the process of converting an object’s state to a string from which it can later be restored.