Added a trap for JSON parsing erros in the repository provider