Receive data in JSON

* The Accept header is set to receive the data in JSON format. This allows us to avoid parsing XML.