From d471fb402d48a9f672fff254549b49fe85605708 Mon Sep 17 00:00:00 2001 From: Pedro Silva Date: Thu, 4 Apr 2013 12:59:22 +0100 Subject: Change json-array-type to list --- ttrss.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ttrss.el b/ttrss.el index 5e1af0c..e29ef13 100644 --- a/ttrss.el +++ b/ttrss.el @@ -72,11 +72,13 @@ CONTENT must be a data structure that `json-encode' knows how to encode as a JSON object. -Returns the JSON response as a plist or, optionally, the PROPERTY -in the plist, if the response status is 0, nil otherwise." +Returns the JSON response as a property list (or, optionally, the +PROPERTY in the property list) if the response status is 0, nil +otherwise." (let ((url-request-method "POST") (url-request-data (json-encode content)) (json-object-type 'plist) + (json-array-type 'list) (json-false nil)) (with-current-buffer (url-retrieve-synchronously address) (goto-char (point-min)) -- cgit v1.2.3