The derivation of Ampere's Law in Jackson E&M from the Biot Savart law is for the most part fairly traditional, using the $\nabla\times(\nabla\times A)$ identity on the vector potential:
$$\nabla\times\mathbf{B}=\nabla\times\nabla\times\frac{\mu_0}{4\pi}\int\left(\frac{\mathbf{J(x')}}{\mathbf{|x-x'|}}\right)\,d^3x$$
and exploiting some identities (like the Laplacian/Dirac identity derived earlier) to simplify the problem.
However, as he is wont to do, he leaves out most of the steps in the computation, and there is an especially egregious omission from 5.20 to 5.21 that I am having trouble understanding.
He simplifies the first expression to something more tractable, namely:
$$\nabla\times\mathbf{B}=-\frac{\mu_0}{4\pi}\,\nabla\int\mathbf{J(x')}\cdot\nabla'\left(\frac{1}{|\mathbf{x}-\mathbf{x'}|}\right)\,d^3x'+\mu_0\mathbf{J(x)}$$
And then, in a rather cryptic statement, says "integration by parts yields:"
$$\nabla\times\mathbf{B}=-\frac{\mu_0}{4\pi}\,\nabla\int\frac{\nabla'\cdot\mathbf{J(x')}}{|\mathbf{x}-\mathbf{x'}|}\,d^3x'+\mu_0\mathbf{J(x)}$$
I've worked through most of the work, but there are still a few steps that escape me.
By integration by parts, he almost certainly means applying the identity $\mathbf{A}\cdot\nabla \psi = \nabla\cdot(\psi\mathbf{A})-\psi(\nabla\cdot\mathbf{A})$, which reduces the problem to
$$\nabla\times\mathbf{B}=\nabla\int\frac{\nabla'\cdot\mathbf{J(x')}}{|\mathbf{x-x'}|}\,d^3x'-\nabla\int\nabla'\cdot\left(\frac{\mathbf{J(x')}}{|\mathbf{x-x'}|}\right)\,d^3x'+\ ...$$
For steady state magnetic phenomena, the first integrand vanishes (since $\nabla\cdot\mathbf{J}=0$), but the second remains.
$$\nabla\times\mathbf{B}=-\nabla\int\nabla'\cdot\left(\frac{\mathbf{J(x')}}{|\mathbf{x-x'}|}\right)\,d^3x'+\ ...$$
I have no idea how to show that this term vanishes. I'd use the divergence theorem to transform the volume integral to a surface integral, but the integrand is not $C^1$ with the singularity at zero, so I'm not sure I can. Jackson does something clever with an $a$-potential
$$\lim_{a\rightarrow 0}\left(\nabla\cdot\left(\frac{1}{(x^2+a^2)^{1/2}}\right)\right)$$
in a somewhat similar electrostatic case earlier, but I don't think it's applicable here.