add better error handling for json loading, two case to see:
- first the we cannot find the file for a given local, just don't care
- second the json file is invalid, now we make a compiler error which stop the current build