Replace requiring json file by read file for compatibility with webpack.