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

Top 2.0% on proxy.golang.org
Top 1.3% dependent packages on proxy.golang.org
Top 1.3% dependent repos on proxy.golang.org
Top 3.5% forks on proxy.golang.org
Top 0.1% docker downloads on proxy.golang.org

proxy.golang.org : github.com/jeremywohl/flatten/v2

Flatten makes flat, one-dimensional maps from arbitrarily nested ones. It turns map keys into compound names, in four default styles: dotted (`a.b.1.c`), path-like (`a/b/1/c`), Rails (`a[b][1][c]`), or with underscores (`a_b_1_c`). Alternatively, you can pass a custom style. It takes input as either JSON strings or Go structures. It knows how to traverse these JSON types: objects/maps, arrays and scalars. You can flatten JSON strings. Or Go maps directly. Let's try a custom style, with the first example above.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/jeremywohl/flatten/v2
License: MIT
Latest release: 1 day ago
Namespace: github.com/jeremywohl/flatten
Dependent packages: 15
Dependent repositories: 18
Stars: 185 on GitHub
Forks: 49 on GitHub
Docker dependents: 31
Docker downloads: 692,796,324
See more repository details: repos.ecosyste.ms
Last synced: 1 day ago