Examveda
Examveda

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

A. Object Encapsulation

B. Object Serialization

C. Object Abstraction

D. Object Encoding

Answer: Option B

Solution(By Examveda Team)

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

This Question Belongs to Javascript >> Basic And Variables

Join The Discussion

Related Questions on Basic and Variables