Guest User

Untitled

a guest
Oct 11th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. (let ((json '((foo . 1)
  2. (bar . [((qux . "hello")) 3])
  3. (baz . ((boo . [1 3 5 7]))))))
  4. (json-pointer-get json "/foo") ;; => 1
  5. (json-pointer-get json "/bar/0") ;; => '((qux . "hello"))
  6. (json-pointer-get json "/bar/0/qux") ;; => "hello"
  7. (json-pointer-get json "/bar/1") ;; => 3
  8. (json-pointer-get json "/baz/boo/2")) ;; => 55
Add Comment
Please, Sign In to add comment