daily pastebin goal
26%
SHARE
TWEET

Untitled

a guest Oct 11th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
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. OK, I Understand
 
Top