SHARE
TWEET

Untitled




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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.