Skip to content

unflattening flat arrays leads to wrong result #7

Open
@LennyPenny

Description

@LennyPenny

When unflattening something like

map[string]interface{}{
	"pew.0": "woop",
}

The result is

map[pew:map[0:woop]]

or as a type map[string]map[string]interface{}

What I would expect is to be the result is

map[pew:[woop]]

or as a type map[string][]interface{}

Are there any plans to remedy this? Would you be willing to merge such a feature if I (or someone else) implemented it?

PS: I'm working on recursively unflattening input - I will upstream that in a PR here later :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions