J/ψ near-threshold photoproduction off the proton and neutron with CLAS12