using parameter for static_path
ensuring json files are opened as utf-8