PHP Find all in items in JSON
===

here is the original json which i want to search to get all occurrences of a specifiv value of a specific key  

    [
    [
    {
    servicetypeid: "26",
    serviceid: "50",
    servicename: "Tax Evasion",
    description: "Tax Evasion",
    optioncode: { },
    inputid: { },
    price: { },
    categoryidentifier: { }
    },
    {
    servicetypeid: "27",
    serviceid: "51",
    servicename: "Parking",
    description: "Parking Related Payments",
    optioncode: { },
    inputid: { },
    price: { },
    categoryidentifier: { }
    },
    {
    servicetypeid: "27",
    serviceid: "52",
    servicename: "Markets",
    description: "Markets Related Payments",
    optioncode: { },
    inputid: { },
    price: { },
    categoryidentifier: { }
    },
    {
    servicetypeid: "27",
    serviceid: "53",
    servicename: "PSV",
    description: "Public Service Vehicles",
    optioncode: { },
    inputid: { },
    price: { },
    categoryidentifier: { }
    },
    {
    servicetypeid: "5",
    serviceid: "54",
    servicename: "Vehicle Bill",
    description: "Check any Bill Attached to Your Vehicle",
    optioncode: "212",
    inputid: "216",
    price: { },
    categoryidentifier: { }
    }
    ]
    ]

I've been trying to write a function like\
findInjson($jsonObj,$field,value)

that would return
findInjson($jsonObj,'servicetypeid','27');

    [
    [
    {
    servicetypeid: "27",
    serviceid: "51",
    servicename: "Parking",
    description: "Parking Related Payments",
    optioncode: { },
    inputid: { },
    price: { },
    categoryidentifier: { }
    },
    {
    servicetypeid: "27",
    serviceid: "52",
    servicename: "Markets",
    description: "Markets Related Payments",
    optioncode: { },
    inputid: { },
    price: { },
    categoryidentifier: { }
    },
    {
    servicetypeid: "27",
    serviceid: "53",
    servicename: "PSV",
    description: "Public Service Vehicles",
    optioncode: { },
    inputid: { },
    price: { },
    categoryidentifier: { }
    }
    ]
    ]

