Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (let ((json '((foo . 1)
- (bar . [((qux . "hello")) 3])
- (baz . ((boo . [1 3 5 7]))))))
- (json-pointer-get json "/foo") ;; => 1
- (json-pointer-get json "/bar/0") ;; => '((qux . "hello"))
- (json-pointer-get json "/bar/0/qux") ;; => "hello"
- (json-pointer-get json "/bar/1") ;; => 3
- (json-pointer-get json "/baz/boo/2")) ;; => 55
Add Comment
Please, Sign In to add comment