bigbasket interview question

How would you remove specific nodes from JSON? (No jQuery)