monkeypatch to accept where param as query in JSON format