It's quite simple, really. The J stands for jakt, which means fighter (lit. hunt, hunter aircraft). A stands for attack, which I'm sure you don't need translation help with. The primary role is just the first letter in the designation; JA is fighter-attack and AJ(S) is attack-fighter(spaning = recon).