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

Nested doc with empty key for paths ending with . character #39

Closed
mrodrig opened this issue Mar 21, 2024 · 0 comments
Closed

Nested doc with empty key for paths ending with . character #39

mrodrig opened this issue Mar 21, 2024 · 0 comments
Assignees
Labels

Comments

@mrodrig
Copy link
Owner

mrodrig commented Mar 21, 2024

Example:

setPath({}, 'Account No.', '01');

/**
results in:
{ 'Account No': { '': '01-1800-00' } }
*/

However, the '' key in the sub-doc should not be generated.

Identified from report in mrodrig/json-2-csv#254

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

No branches or pull requests

2 participants
@mrodrig and others