Skip to content

Commit

Permalink
feat(docs): update docs (#581)
Browse files Browse the repository at this point in the history
feat(docs): update docs

Updates the Wing docs. See details in [workflow run].

[Workflow Run]: https://github.com/winglang/docsite/actions/runs/5941124197

------

*Automatically created via the "update-docs" workflow*
  • Loading branch information
monadabot authored Aug 22, 2023
1 parent ff2f366 commit b151a90
Showing 1 changed file with 33 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -940,13 +940,11 @@ to parse as Json.
##### `stringify` <a name="stringify" id="@winglang/sdk.std.Json.stringify"></a>

```wing
Json.stringify(json: any, indent?: num);
Json.stringify(json: any, options?: JsonStringifyOptions);
```

Formats Json as string.

(JSON.stringify($args$))

###### `json`<sup>Required</sup> <a name="json" id="@winglang/sdk.std.Json.stringify.parameter.json"></a>

- *Type:* any
Expand All @@ -955,9 +953,9 @@ to format as string.

---

###### `indent`<sup>Optional</sup> <a name="indent" id="@winglang/sdk.std.Json.stringify.parameter.indent"></a>
###### `options`<sup>Optional</sup> <a name="options" id="@winglang/sdk.std.Json.stringify.parameter.options"></a>

- *Type:* num
- *Type:* <a href="#@winglang/sdk.std.JsonStringifyOptions">JsonStringifyOptions</a>

---

Expand Down Expand Up @@ -2285,4 +2283,34 @@ Year.

---

### JsonStringifyOptions <a name="JsonStringifyOptions" id="@winglang/sdk.std.JsonStringifyOptions"></a>

Options for stringify() method.

#### Initializer <a name="Initializer" id="@winglang/sdk.std.JsonStringifyOptions.Initializer"></a>

```wing
let JsonStringifyOptions = JsonStringifyOptions{ ... };
```

#### Properties <a name="Properties" id="Properties"></a>

| **Name** | **Type** | **Description** |
| --- | --- | --- |
| <code><a href="#@winglang/sdk.std.JsonStringifyOptions.property.indent">indent</a></code> | <code>num</code> | Indentation spaces number. |

---

##### `indent`<sup>Required</sup> <a name="indent" id="@winglang/sdk.std.JsonStringifyOptions.property.indent"></a>

```wing
indent: num;
```

- *Type:* num

Indentation spaces number.

---


1 comment on commit b151a90

@vercel
Copy link

@vercel vercel bot commented on b151a90 Aug 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.