There is no way to see shape of protons and neutrons, so the simplest assumption is that they are spherical. The question is regularly returned to the Internet:
Proton and neutron doesn't have any definite shapes as they are made of quarks, which also do not have a definite shape ( unfortunately we can't ever possibly see it as uncertainty principle forbid it) and are rather known as the quantum fluctuations in space bound with gluons. So upto my knowledge, shape can only be achieved at nuclear dimensions where it can obtain shperical, oblate or prolate shoes depending on the energy distribution inside and on the surface of the nucleus.
There is no way to see the shape of protons and neutrons. However, we can discuss the shape of the proton or neutron response in a suitable scintillator.
Adding to the colleagues, if one assumes that the proton charge is homogeneously distributed in it and we observe that electric field of the proton is spherically symmetrical, then one would conclude that the most probable shape of the proton is spherical.
Also for the rigidity of the objects i think the spherical shape is one of the most rigid shapes. There is no cause that the proton shape does not assume the highest symmetry in the space which is also spherical shape.
As for the neutron i think it must be constructed for the highest symmetry in the space.
From electrostatic point of view they considered as point charges.