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

Top 9.0% on proxy.golang.org

proxy.golang.org : github.com/tk42/flatten

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/tk42/flatten
License: MIT
Latest release: over 4 years ago
First release: over 5 years ago
Namespace: github.com/tk42
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 15 days ago

    Loading...
    Readme
    Loading...