Top 0.5% dependent packages on proxy.golang.org
Top 0.7% dependent repos on proxy.golang.org
Top 2.9% forks on proxy.golang.org
proxy.golang.org : github.com/antonholmquist/jason
Jason is designed to be convenient for reading arbitrary JSON while still honoring the strictness of the language. Inspired by other libraries and improved to work well for common use cases. It currently focuses on reading JSON data rather than creating it. JSON is a commonly used data transfer format, so usually the data you want to read comes either as bytes or as an io.Reader. Create an object from bytes: .. or from a net/http response body: Reading values is done with Get<Type>(keys ...) or the generic Get(keys ...). If the key path is invalid or the type doesn't match, it will return an error and the default value. Getting an array is done by Get<Type>Array() or the generic GetValueArray(). It returns an error if the value at that keypath is null (or something else than the type). Looping through an object is done by first getting it with `GetObject()` and then range on the Map(). The GetObject() method returns an error if the value at that keypath is null (or something else than an object).
Registry
-
Source
- Documentation
- JSON
- codemeta.json
purl: pkg:golang/github.com/antonholmquist/jason
License: MIT
Latest release: almost 11 years ago
First release: almost 11 years ago
Namespace: github.com/antonholmquist
Dependent packages: 91
Dependent repositories: 77
Stars: 1,137 on GitHub
Forks: 71 on GitHub
Docker dependents: 1
Docker downloads: 18
See more repository details: repos.ecosyste.ms
Last synced: about 7 hours ago