Last active
December 4, 2016 22:55
-
-
Save qharlie/2ef460e08fc18902cd1f158eeadf98ae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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