-4
由于标题说我正在寻找去除特定键的json,这可能使用json或simplejson与python?有没有办法使用python和simplejson/json去除json键/值
由于标题说我正在寻找去除特定键的json,这可能使用json或simplejson与python?有没有办法使用python和simplejson/json去除json键/值
一个JSON将加载到Python字典,所以你可以仅仅通过字典解析剥夺他们:
{k:v for k,v in json.loads(string_where_json_was_readed) if k not in keys_to_strip_list}