# Output \`zig targets\` as ZON instead of JSON \(\#22939\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 339b628d4c8a850c6d819e88fb3b84b86e8b5927

Requested commit: 339b628d4c8a850c6d819e88fb3b84b86e8b5927

Commit: 339b628d4c8a850c6d819e88fb3b84b86e8b5927

Tree: cb31173da17ada279298a0a37224fefed9024f02

Author: Mason Remaley

Committer: GitHub

## Message

```
Output `zig targets` as ZON instead of JSON (#22939)

* Adds startTupleField/startStructField, makes pattern in print targets less verbose

* Makes some enums into strings

* Start/finish renamed to begin/end

I feel bad changing this, but I don't know why I named them this way in the first place.
Begin/end is consistent with the json API, and with other APIs in the wild that follow this pattern.
Better to change now than later.
```

## Parents

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

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