proxy.golang.org : github.com/ruudk/flatten
Flatten makes flat, one-dimensional maps from arbitrarily nested ones. It turns map keys into compound names, in three styles: dotted (`a.b.1.c`), path-like (`a/b/1/c`), or Rails (`a[b][1][c]`). 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.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/ruudk/flatten
License: MIT
Latest release: over 6 years ago
First release: over 6 years ago
Namespace: github.com/ruudk
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 12 days ago