REST API works, but I cannot pass json parameter to it, getting "Unable to decode supplied JSON".
I am running CiviCRM 4.6.8 on Wordpress.
I have properly identified SITE KEY and API KEY, and I can run REST query with an empty json dictionary as parameter:
https://foo.com/wp-content/plugins/civicrm/civicrm/extern/rest.php?entity=Contact&action=get&api_key=secret1&key=secret2&json={}
which gives me 25 contact records in a json data structure.
But when I try to add a json parameter (copied from API Explorer):
https://foo.com/wp-content/plugins/civicrm/civicrm/extern/rest.php?entity=Contact&action=get&api_key=secret1&key=secret2&json={%22sequential%22:1,%22email%22:%22marcin@akcjademokracja.pl%22}
..I get the following error:
{"is_error":1,"0":"error_message","1":"Unable to decode supplied JSON."}
What am I doing wrong?