To solve this problem, the application of the Ampere law is necessary.
This law relates the integrated magnetic field around a closed loop to the electric current passing through the loop.
The equation is defined as,

Where,
B= Magnetic field
Permeability constant
J = Total current density
r = Radius
Integrating we have:


Therefore with that condition the previous equation represent the current density in this region of space