Your files never leave your device
Advertisement

JSON Parse & Stringify

JSON (JavaScript Object Notation) is the standard format for sending data across the web. It looks like JS objects, but it's just a text string.

Stringify (Object -> String)

Before saving to localStorage or sending to an API, convert JS objects to strings.

Try It Yourself

        

Parse (String -> Object)

When you receive JSON text, convert it back into a usable JS object.

Try It Yourself

        

Practice

Challenge 1: Create an array of strings, stringify it, then parse it back.

Related Guides

Sponsored Utility
While You're Here
Sponsored Recommendations
Advertisement