Set content type to application/json. NOTE: Code a little redundant, perhaps move to a utility class.