https://github.com/barney-ci/go-json5
A json5 decoder for Go
https://github.com/barney-ci/go-json5
go json5
Last synced: 5 months ago
JSON representation
A json5 decoder for Go
- Host: GitHub
- URL: https://github.com/barney-ci/go-json5
- Owner: barney-ci
- License: mit
- Created: 2022-01-06T10:50:40.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-11T18:18:32.000Z (over 4 years ago)
- Last Synced: 2024-06-20T11:48:12.556Z (about 2 years ago)
- Topics: go, json5
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 6
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# barney.ci/go-json5
This library implements a parser that supports a subset of the JSON5 specification.
## Features
It actually works. I'm not even kidding, I tried alternatives and they all
failed on real-world parsing scenarios when trying to deal with comments.
Everything in the JSON5 specification is supported _except_ for Infinity and
NaN. This is because this library translates a JSON5 document to JSON, where
both values are non-representable. A proper parser needs to be implemented
in order to support that use-case.
## Usage
```
go get barney.ci/go-json5
```