Unequip your weapon first, then stand either at the head or the feet of the body and hold down the square button.
Once you are carrying it, lifting and dropping the body will shake loose any items it was holding, including ammunition. That is the main reason to bother — bodies are inventory you have not searched yet.