Made get and post return json content type responses. Get actually works now and encodes the response as a json array