An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

github.com/deepch/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).

Ecosystem
proxy.golang.org
Latest Release
v1.0.0
about 11 years ago
Versions
1
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/deepch/jason
spec
License MIT
Namespace github.com/deepch
First Release about 11 years ago
Last Synced about 1 month ago
Repository
Stars 0 on GitHub
Forks 0 on GitHub
Rankings on proxy.golang.org
Overall Top 8.2%