Generate json file for Typeahead