From c2d26fb2a3b85a9d239d3ad47d344831b757884f Mon Sep 17 00:00:00 2001 From: delizin Date: Sat, 19 Apr 2014 17:14:52 -0400 Subject: [PATCH] Update readme.md Add missing double quotes to JSON keys. --- readme.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/readme.md b/readme.md index b3ddf33..2f114b9 100644 --- a/readme.md +++ b/readme.md @@ -119,11 +119,11 @@ Response from the server must be JSON formatted following JavaScript object: { // Query is not required as of version 1.2.5 - query: "Unit", - suggestions: [ - { value: "United Arab Emirates", data: "AE" }, - { value: "United Kingdom", data: "UK" }, - { value: "United States", data: "US" } + "query": "Unit", + "suggestions": [ + { "value": "United Arab Emirates", "data": "AE" }, + { "value": "United Kingdom", "data": "UK" }, + { "value": "United States", "data": "US" } ] } @@ -132,8 +132,8 @@ and onSelect callback. Alternatively, if there is no data you can supply just a string array for suggestions: { - query: "Unit", - suggestions: ["United Arab Emirates", "United Kingdom", "United States"] + "query": "Unit", + "suggestions": ["United Arab Emirates", "United Kingdom", "United States"] } ## Non standard query/results