# std.json: Parse \-0 as a float instead of an integer \(\#17729\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 772636ed0d4a2051955197999c9ddf2906384806

Requested commit: 772636ed0d4a2051955197999c9ddf2906384806

Commit: 772636ed0d4a2051955197999c9ddf2906384806

Tree: ad6779833aa096513c83f20e846993f745cafa1d

Author: Linus Groh

Committer: GitHub

## Message

```
std.json: Parse -0 as a float instead of an integer (#17729)

This is consistent with `JSON.parse("-0")` in JavaScript, RFC 8259
doesn't specifically mention what to do in this case.
If a negative zero is encoded the intention is likely to preserve the
sign.
```

## Parents

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

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