Inclusive J production at mid-rapidity in pp collisions at \( \sqrt{s} \) = 5.02 TeV