added a check that package json files are valid
fixed package.json files