From 2c8058a15e5508a094a43b6bb7bfa7076e6ff50d Mon Sep 17 00:00:00 2001 From: Tomas Kirda Date: Fri, 21 Aug 2015 09:52:39 -0500 Subject: [PATCH] Add json to supported data type list, fixes #401 --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index f86ed61..97c7263 100644 --- a/readme.md +++ b/readme.md @@ -16,7 +16,7 @@ The standard jquery.autocomplete.js file is around 13KB when minified. ###Ajax Settings * `serviceUrl`: Server side URL or callback function that returns serviceUrl string. Optional if local lookup data is provided. * `type`: Ajax request type to get suggestions. Default: `GET`. -* `dataType`: type of data returned from server. Either 'text' (default) or 'jsonp', which will cause the autocomplete to use jsonp. You may return a json object in your callback when using jsonp. +* `dataType`: type of data returned from server. Either `text` (default), `json` or `jsonp`, which will cause the autocomplete to use jsonp. You may return a json object in your callback when using jsonp. * `paramName`: Default `query`. The name of the request parameter that contains the query. * `params`: Additional parameters to pass with the request, optional. * `deferRequestBy`: Number of miliseconds to defer ajax request. Default: `0`.