set dataType to json on the GET request