Json based array filtering