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

Data is lost if unflatten column name equals to another original column #48

Open
manycoding opened this issue May 23, 2019 · 1 comment

Comments

@manycoding
Copy link

manycoding commented May 23, 2019

Seems like a corner case, so I think at least we should raise an error when such situation happens:

echo '{"id": [0], "id_0": 2}' | flatten_json
>>>{"id_0": 2}

As you see, "id": [0] is lost. One might use another separator, but the idea is that one can never be sure which separator will definitely work before he actually checks the data.

Could be related with #17

@aneuway2
Copy link

aneuway2 commented Jul 2, 2019

Also seeing this issue in version 0.1.7 however degrading to version 0.1.6 does not show this issue

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

No branches or pull requests

2 participants