Added JSON Filter function