Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unflattening flat arrays leads to wrong result #7

Open
LennyPenny opened this issue Oct 24, 2019 · 2 comments · May be fixed by #20
Open

unflattening flat arrays leads to wrong result #7

LennyPenny opened this issue Oct 24, 2019 · 2 comments · May be fixed by #20

Comments

@LennyPenny
Copy link

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 :)

@LennyPenny LennyPenny changed the title unflatteting flat arrays leads to wrong result unflattening flat arrays leads to wrong result Oct 24, 2019
@pgt502
Copy link

pgt502 commented Oct 21, 2020

Did you end up implementing it?

@ivan-californias
Copy link

Any update on this issue? Anyone able to fix it?, maybe on a fork?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants