Write script to delete json element by value condition in powershell -- 2

Job ID: 33107094

Budget: $10 – $30 USD

I have a JSON file, white 3 levels of elements, and I need to delete a block
{
Foo:2
Fee:3
Sample:false
}

element if a value sample = false inside this element.
Related categories: PHP XML Software Architecture Shell Script Powershell