Merge "registration: Throw an Exception if a JSON file is invalid"