Thin wire in magnetostatics
For a thin wire along a curve $C$ with current $I$, the current density is $$ \begin{align*} \v J(\v x) = I \int_{C} δ(\v x - \v x') \d\v x'. \end{align*} $$ Charge conservation implies $C$ is closed or infinite. (Derivation)