I like to filter json files using jq:
jq . some.json
Given the json containing an array of objects:
{ \"theList\": [
Here is a solution using indices:
.theList | [ .[map(.id)|indices(2,4)[]] ]