Implemented typeahead. Probl: cant automatically create JSON. #2