# compiler,std: implement ZON support · gitcafe/zig

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

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

Visibility: public

Requested revision: 13c6eb0d71b253cc55a667e33dbdd4932f3710f1

Requested commit: 13c6eb0d71b253cc55a667e33dbdd4932f3710f1

Commit: 13c6eb0d71b253cc55a667e33dbdd4932f3710f1

Tree: 8c6eee3ffc63cb6b0ec8f6a4407af3a94a949c64

Author: Mason Remaley

Committer: mlugg

## Message

```
compiler,std: implement ZON support

This commit allows using ZON (Zig Object Notation) in a few ways.

* `@import` can be used to load ZON at comptime and convert it to a
  normal Zig value. In this case, `@import` must have a result type.
* `std.zon.parse` can be used to parse ZON at runtime, akin to the
  parsing logic in `std.json`.
* `std.zon.stringify` can be used to convert arbitrary data structures
  to ZON at runtime, again akin to `std.json`.

```

## Parents

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

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