Skip to content

Commit c2d26fb

Browse files
committed
Update readme.md
Add missing double quotes to JSON keys.
1 parent 52ad3d9 commit c2d26fb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

readme.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ Response from the server must be JSON formatted following JavaScript object:
119119

120120
{
121121
// Query is not required as of version 1.2.5
122-
query: "Unit",
123-
suggestions: [
124-
{ value: "United Arab Emirates", data: "AE" },
125-
{ value: "United Kingdom", data: "UK" },
126-
{ value: "United States", data: "US" }
122+
"query": "Unit",
123+
"suggestions": [
124+
{ "value": "United Arab Emirates", "data": "AE" },
125+
{ "value": "United Kingdom", "data": "UK" },
126+
{ "value": "United States", "data": "US" }
127127
]
128128
}
129129

@@ -132,8 +132,8 @@ and onSelect callback. Alternatively, if there is no data you can
132132
supply just a string array for suggestions:
133133

134134
{
135-
query: "Unit",
136-
suggestions: ["United Arab Emirates", "United Kingdom", "United States"]
135+
"query": "Unit",
136+
"suggestions": ["United Arab Emirates", "United Kingdom", "United States"]
137137
}
138138

139139
## Non standard query/results

0 commit comments

Comments
 (0)