Erase some lines in json file
Question: **_i have a json file:_**

![json file](http://i.stack.imgur.com/H4exJ.png)

i want to erase some line in this file **_like this:_**

![json file modify](http://i.stack.imgur.com/WYE6C.png)

how can i do this with a python script ..?


Answer: 
    import json
    data = json.loads(open("input.json").read())
    with open("output.json", "w") as outfile:
            json.dump(data["Stock"]["Vehicule"], outfile)
    

