The documentation for jQuery UI Autocomplete states that the source property can be set to a URL that returns the suggested items in JSON format. However, it doesn
source
This is a JSON Format
{source: ["Milan", "Turin", "Venice", "Florence", "Rome"] }
or another source
{source: ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby"]}