validate and normalize component.jsons