No constructor function is needed to create
JSON objects. The
.staticMethod() used against the
JSON object is going to be either the
.parse() or the
.stringify() methods, shown below:
- Returns a new value taken from a provided JSON string.
- Returns the string representation of a JSON object.
Interested in helping build Docs? Read the Contribution Guide or share your thoughts in this feedback form.
Full-Stack EngineerA full-stack engineer can get a project done from start to finish, back-end to front-end.
Includes 51 Courses
With Professional Certification