Export Data in v1.2.1

I am using dgraph v1.2.1 and was trying to migrate to latest version.
I ran

dgraph alpha --whitelist localhost, my_ip_address

Then

curl -Ss -H “Content-Type: application/json” http://localhost:8080/admin -XPOST -d ‘{ “query”: “mutation { export(input: {format: “json”}) { response { code message } }}” }’

I received the following:

curl: (6) Could not resolve host: application

But when i tried

curl localhost:8080/admin/export

it works and exports into RDF format. I want the export in JSON format.

Can someone help me please?

Update: I managed to export in JSON via:

curl localhost:8080/admin/export?format=json

via the issue here: https://github.com/dgraph-io/dgraph/pull/4754

I just like to ask is the mutation method still working?

The GraphQL Admin mutations and queries are in v20.xx.x versions. Not before.