Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Compose#20

Merged
marcbachmann merged 2 commits into
janl:masterjanl/node-jsonpointer:masterfrom
marcbachmann:composeCopy head branch name to clipboard
Sep 29, 2015
Merged

Compose#20
marcbachmann merged 2 commits into
janl:masterjanl/node-jsonpointer:masterfrom
marcbachmann:composeCopy head branch name to clipboard

Conversation

@marcbachmann

Copy link
Copy Markdown
Collaborator
var jsonpointer = require('jsonpointer')
var ref = jsonpointer.compile('/a')
ref.get(object) // returns object['a']
ref.set(object, value) // sets object['a'] = value

Discussed in #8

Comment thread jsonpointer.js Outdated

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I should check value against undefined instead of a falsy value.

@marcbachmann

Copy link
Copy Markdown
Collaborator Author

@hildjj still interested in this feature?

marcbachmann added a commit that referenced this pull request Sep 29, 2015
jsonpointer.compile(pointer) feature
@marcbachmann marcbachmann merged commit dc1e2c6 into janl:master Sep 29, 2015
@marcbachmann marcbachmann deleted the compose branch September 29, 2015 23:09
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

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.