有没有办法使用python和simplejson/json删除json键/值
正如标题所说,我正在寻找去除json中的特定键,这是否可能使用json或simplejson与python结合使用?json将加载到python dict中,因此您可以通过字典理解来去除它们:有没有办法使用python和simplejson/json删除json键/值,python,json,simplejson,Python,Json,Simplejson,正如标题所说,我正在寻找去除json中的特定键,这是否可能使用json或simplejson与python结合使用?json将加载到python dict中,因此您可以通过字典理解来去除它们: {k:v for k,v in json.loads(string_where_json_was_readed) if k not in keys_to_strip_list}
{k:v for k,v in json.loads(string_where_json_was_readed) if k not in keys_to_strip_list}