0

I am newbie and I am confuse here . I have a array of objects and I want to pop data of specific key from array how I can do this in python ? my array is like

my_array = [
        {'name': 'updated_by', 'value': {'longValue': 1}},
        {'name': 'node_id', 'value': {'longValue': 2}},
    ] 

I want my_array without name : node_id value

I have object of array not just array of integers . I dosen't answer my question

WHY YOU GUYS NOT UNDERSTANDING ALL QUESTIONS ARE RELATED TO JUST LIST NOT LIST OF OBJECTS

  • I think [this duplicate](https://stackoverflow.com/questions/1235618/remove-dictionary-from-list) should cover your use-case very precisely. However, all the other "remove based on condition" should apply as well – the condition being that the element does not have a ``'name' : 'node_id'`` pair. – MisterMiyagi Dec 22 '21 at 12:46
  • @MisterMiyagi thanks man this helped me . thanks again – sajjad ahmad Dec 22 '21 at 12:59

0 Answers0