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

Keys prefixed with dot when used with arrays #10

Closed
bradisbell opened this issue Nov 29, 2016 · 1 comment
Closed

Keys prefixed with dot when used with arrays #10

bradisbell opened this issue Nov 29, 2016 · 1 comment

Comments

@bradisbell
Copy link

When using arrays, the keys become prefixed with a dot ., even when no prefix is set. For example:

dotize.convert({data: [ {obj0key: 'obj0val'}, {obj1key: 'obj1val'} ] })

This returns:

{ '.data[0].obj0key': 'obj0val', '.data[1].obj1key': 'obj1val' }

Expected return:

{ 'data[0].obj0key': 'obj0val', 'data[1].obj1key': 'obj1val' }
vardars added a commit that referenced this issue Dec 8, 2016
@vardars
Copy link
Owner

vardars commented Dec 8, 2016

thanks for pointing out. fixed and tested.

@vardars vardars closed this as completed Dec 16, 2016
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