Skip to content

Conversation

@marcbachmann
Copy link
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

jsonpointer.js Outdated
Copy link
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
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