diff --git a/versioned_docs/version-latest/04-standard-library/02-std/api-reference.md b/versioned_docs/version-latest/04-standard-library/02-std/api-reference.md index 5ca1f9033..04f1df5ee 100644 --- a/versioned_docs/version-latest/04-standard-library/02-std/api-reference.md +++ b/versioned_docs/version-latest/04-standard-library/02-std/api-reference.md @@ -940,13 +940,11 @@ to parse as Json. ##### `stringify` ```wing -Json.stringify(json: any, indent?: num); +Json.stringify(json: any, options?: JsonStringifyOptions); ``` Formats Json as string. -(JSON.stringify($args$)) - ###### `json`Required - *Type:* any @@ -955,9 +953,9 @@ to format as string. --- -###### `indent`Optional +###### `options`Optional -- *Type:* num +- *Type:* JsonStringifyOptions --- @@ -2285,4 +2283,34 @@ Year. --- +### JsonStringifyOptions + +Options for stringify() method. + +#### Initializer + +```wing +let JsonStringifyOptions = JsonStringifyOptions{ ... }; +``` + +#### Properties + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| indent | num | Indentation spaces number. | + +--- + +##### `indent`Required + +```wing +indent: num; +``` + +- *Type:* num + +Indentation spaces number. + +--- +