Skip to content

Instantly share code, notes, and snippets.

@qharlie
Last active December 4, 2016 22:55
Show Gist options
  • Save qharlie/2ef460e08fc18902cd1f158eeadf98ae to your computer and use it in GitHub Desktop.
Save qharlie/2ef460e08fc18902cd1f158eeadf98ae to your computer and use it in GitHub Desktop.
(require 'json)
(url-copy-file "https://www.reddit.com/r/emacs/.json" "~/scratch.json")
(mapcar (lambda (entry)
(let-alist entry .data.score))
(let-alist (json-read-file "~/scratch.json") .data.children))
; Trying to do something like
(mapcar (lambda (entry)
(let-alist entry .data.score + " " + .data.title ))
(let-alist (json-read-file "~/scratch.json") .data.children))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment