# autodoc: rework json printing code · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/dd4bd55ef6891109f3a462369a3430d11d5db4ee)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: dd4bd55ef6891109f3a462369a3430d11d5db4ee

Requested commit: dd4bd55ef6891109f3a462369a3430d11d5db4ee

Commit: dd4bd55ef6891109f3a462369a3430d11d5db4ee

Tree: 58e1a95a870307c9f52956568309b557f556cc05

Author: Loris Cro

Committer: Andrew Kelley

## Message

```
autodoc: rework json printing code

We're now using `std.json.writeStream`, which makes our prints correct
in terms of escapes and also reduces the amount of json-related code.
Unfortunately, we have to mess around with the json stream writer state
whenever we end up using `std.json.stringify` for convenience.

```

## Parents

- [45e3b1a23df6f0f0174b277194b5301662d7c256](https://git.cafe/gitcafe/zig/commit/45e3b1a23df6f0f0174b277194b5301662d7c256?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/dd4bd55ef6891109f3a462369a3430d11d5db4ee?format=markdown)
