问:我正在尝试捕获键"value“中捕获的值,并将其显示在控制台上。然而,在执行时得到错误“org.json.simple.JSONArray cannot be cast to org.json.simple.JSONObject”import java.io.FileNotFoundException;import org.json.
我正在尝试将一个大的jsons-文件(2.5GB)加载到Pandas dataframe。由于文件的大小较大,pandas.read_json()将导致内存错误。所以我试着像这样读到:
with open(os.path.join(S_DIR, 'file.jsons')) as json_file: