Skip to content

Glossary: React Native

JSON.stringify / JSON.parse

Also written: JSON, JSON.stringify, JSON.parse

`JSON.stringify` turns an object into text and `JSON.parse` turns the text back into an object. They are used to store the cart in AsyncStorage and to send orders to the server.

Where the book teaches it

Related terms

AsyncStoragePOST request