one of the more useful variations of "ja" is "jo", which is used to disagree with a negatively constructed sentence. if you're familiar with german, "doch" operates in the same way in that language. so one way you might see it is like this:
"du har inte en lägenhet, eller hur?" "jo, den har jag."
"you don't have an apartment, do you?" "yes, i do."