started refactoring of json to map converter