We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I found the following issues with flatten_preserve_lists
flatten_preserve_lists({'K': ['abc', [1, 2, 3]]}, separator="+") results in the error re.error: nothing to repeat at position 1
flatten_preserve_lists({'K': ['abc', [1, 2, 3]]}, separator="+")
re.error: nothing to repeat at position 1
flatten_preserve_lists({'K': ['abc', [1, 2, 3]]}, separator="=+") (note that the 'separator' is '=+' and not '+' as in the previous case)
flatten_preserve_lists({'K': ['abc', [1, 2, 3]]}, separator="=+")
[{'K=+0=+1=+0=+1=+2': None, 'K=+0=+1=+0=+1': None, 'K=+0=+1=+0': None, 'K=+0': None, 'K': 'abc'}, {'K=+0=+1=+0=+1=+2': None, 'K=+0=+1=+0=+1': None, 'K=+0=+1=+0': None, 'K=+0': None, 'K': 1}, {'K=+0=+1=+0=+1=+2': None, 'K=+0=+1=+0=+1': None, 'K=+0=+1=+0': None, 'K=+0': None, 'K': 2}, {'K=+0=+1=+0=+1=+2': None, 'K=+0=+1=+0=+1': None, 'K=+0=+1=+0': None, 'K=+0': None, 'K': 3}]
{'K': ['abc', [1, 2, 3]]}
flatten_preserve_lists({'K': ['abc', [[1, 2, 3]]]}, separator="=+")
[{'K=+0=+1=+0=+0=+1': None, 'K=+0=+1=+0=+0=+1=+2': None, 'K=+0=+1=+0=+0': None, 'K=+0': None, 'K': 'abc'}, {'K=+0=+1=+0=+0=+1': None, 'K=+0=+1=+0=+0=+1=+2': None, 'K=+0=+1=+0=+0': None, 'K=+0': None, 'K': [1, 2, 3]}]
{'K': ['abc', [[1, 2, 3]]]}
flatten_preserve_lists({'K': ['abc', [1, 2, 3]]})
[{'K': 'abc'}, {'K': 1}, {'K': 2}, {'K': 3}]
flatten_preserve_lists({'K': ['abc', [[1, 2, 3]]]})
[{'K': 'abc'}, {'K': [1, 2, 3]}]
I am working with the latest version of flatten_json, which is currently 0.1.13
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I found the following issues with flatten_preserve_lists
flatten_preserve_lists({'K': ['abc', [1, 2, 3]]}, separator="+")
results in the errorre.error: nothing to repeat at position 1
flatten_preserve_lists({'K': ['abc', [1, 2, 3]]}, separator="=+")
(note that the 'separator' is '=+' and not '+' as in the previous case)[{'K=+0=+1=+0=+1=+2': None, 'K=+0=+1=+0=+1': None, 'K=+0=+1=+0': None, 'K=+0': None, 'K': 'abc'}, {'K=+0=+1=+0=+1=+2': None, 'K=+0=+1=+0=+1': None, 'K=+0=+1=+0': None, 'K=+0': None, 'K': 1}, {'K=+0=+1=+0=+1=+2': None, 'K=+0=+1=+0=+1': None, 'K=+0=+1=+0': None, 'K=+0': None, 'K': 2}, {'K=+0=+1=+0=+1=+2': None, 'K=+0=+1=+0=+1': None, 'K=+0=+1=+0': None, 'K=+0': None, 'K': 3}]
{'K': ['abc', [1, 2, 3]]}
as the input is not nestedflatten_preserve_lists({'K': ['abc', [[1, 2, 3]]]}, separator="=+")
[{'K=+0=+1=+0=+0=+1': None, 'K=+0=+1=+0=+0=+1=+2': None, 'K=+0=+1=+0=+0': None, 'K=+0': None, 'K': 'abc'}, {'K=+0=+1=+0=+0=+1': None, 'K=+0=+1=+0=+0=+1=+2': None, 'K=+0=+1=+0=+0': None, 'K=+0': None, 'K': [1, 2, 3]}]
{'K': ['abc', [[1, 2, 3]]]}
as the input is not nestedflatten_preserve_lists({'K': ['abc', [1, 2, 3]]})
[{'K': 'abc'}, {'K': 1}, {'K': 2}, {'K': 3}]
{'K': ['abc', [1, 2, 3]]}
as the input is not nestedflatten_preserve_lists({'K': ['abc', [[1, 2, 3]]]})
[{'K': 'abc'}, {'K': [1, 2, 3]}]
{'K': ['abc', [1, 2, 3]]}
as the input is not nestedI am working with the latest version of flatten_json, which is currently 0.1.13
The text was updated successfully, but these errors were encountered: