Fork me on GitHub
#emacs
<
2016-02-26
>
crankyadmin13:02:11

Hi

(defun service-application-query ()
  (let ((url-request-method "GET"))
    (url-retrieve service-application-manager-url
                  (lambda (status)
                    (re-search-forward "\r?\n\r?\n")
                    (json->table-entries (buffer-string))))))
I know I don’t want to be passing the buffer-string as it still contains the headers. How do I go about passing the output of re-search-forward into json->table-entries?

crankyadmin13:02:59

I worked it out (json->table-entries (buffer-substring (point) (point-max))) Thanks all the same simple_smile