connect edit form to single json files

create factory, update json files to be objects, not arrays