Modified api to have a content type of JSON

Bug fix: some of the 'get' functions had json_request set as false by default when it needed to be true by default.