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

Appending to array using [] isn't working #38

Closed
z0mbieparade opened this issue Jun 8, 2018 · 1 comment
Closed

Appending to array using [] isn't working #38

z0mbieparade opened this issue Jun 8, 2018 · 1 comment

Comments

@z0mbieparade
Copy link

Doing this:
jdb.push('/path[]', {foo: bar}, true/false)

results in this:

{
    "path[]": {
      "foo":"bar"
   }
}

instead of what it used to do which was:

{
   "path": [
      { "foo":"bar" }
   ]
}
@z0mbieparade
Copy link
Author

Apologies, I saw your note on the last open issue about this, some of my paths started with a #

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

1 participant