Answer: D
Reason: In the above give piece of code, the task of Object Serialization is being performed. In this task, the object's state converted into a string, that also can be restored if needed. Another method used in the above-given code is "JSON.parse()", which parses a JSON string, object described by the string or constructing javascript value.