diff --git a/docs/api.md b/docs/api.md index b7841ce..6279aed 100644 --- a/docs/api.md +++ b/docs/api.md @@ -175,13 +175,13 @@ In general to parse or stringify JSON data, the browsers built in JSON parser ca To create a formatted string from a JSON object, use: ```js -var formattedString = JSON.stingify(json, null, 2); +var formattedString = JSON.stringify(json, null, 2); ``` to create a compacted string from a JSON object, use: ```js -var compactString = JSON.stingify(json); +var compactString = JSON.stringify(json); ``` To parse a String to a JSON object, use: