# JSON.stringify()

A method that converts a supported JavaScript value into JSON text.

## What does **JSON.stringify()** do in JavaScript?

**JSON.stringify()** — A method that converts a supported JavaScript value into JSON text.

```javascript
const order = { item: "tea" };
const text = JSON.stringify(order);
```

Level: Journeyman · [More JavaScript terms at this level](https://www.ask-codey.com/glossary/subjects/javascript/journeyman)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/json-stringify
