Skip to content

Commit b860b4f

Browse files
Fix JSON example
1 parent 6eb48c0 commit b860b4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/docs/manual/latest/json.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ Where `data` can be any type you assume the JSON is. As you can see, this compil
3434

3535
## Stringify
3636

37-
Use [`JSON.stringify`](api/core/json#value-stringify):
37+
Use [`JSON.stringify`](api/core/json#value-stringify) if your data is of type `JSON.t` or [`JSON.stringifyAny`](api/core/json#value-stringifyAny) if it is not.
3838

3939
<CodeTab labels={["ReScript", "JS Output"]}>
4040

4141
```res example
42-
Console.log(JSON.stringify(["Amy", "Joe"]))
42+
Console.log(JSON.stringifyAny(["Amy", "Joe"]))
4343
```
4444
```js
4545
console.log(JSON.stringify([

0 commit comments

Comments
 (0)