Top 3.4% dependent packages on proxy.golang.org
Top 4.8% dependent repos on proxy.golang.org
Top 1.0% docker downloads on proxy.golang.org
proxy.golang.org : github.com/olvrng/ujson
Package µjson implements a fast and minimal JSON parser and transformer that works on unstructured json. Example use cases: without fully unmarshalling it into a map[string]interface{} CAUTION: Behaviour is undefined on invalid json. Use on trusted input only. The single most important function is "Walk()", which parses the given json and call callback function for each key/value pair processed. Calling "Walk()" with the above input will produce: "level" indicates the indentation of the key/value pair as if the json is formatted properly. Keys and values are provided as raw literal. Strings are always double-quoted. To get the original string, use "Unquote". "value" will never be empty (for valid json). You can test the first byte ("value[0]") to get its type: When processing arrays and objects, first the open bracket ("[", "{") will be provided as "value", followed by its children, and finally the close bracket ("]", "}"). When encountering open brackets, you can make the callback function return "false" to skip the array/object entirely.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/olvrng/ujson
License: MIT
Latest release: 12 months ago
First release: about 5 years ago
Namespace: github.com/olvrng
Dependent packages: 3
Dependent repositories: 1
Docker dependents: 1
Docker downloads: 4,250
Last synced: 4 days ago