Let x be the oxidation number of N in [N2–––H5)2SO4.
Since the overall charge on the compound is 0, the sum of oxidation states of all elements in it should be equal to 0.
Therefore, 2(2x+5(+1))+(−2)=0
Hence, x=−2
Hence, the oxidation number of N in [N2–––H5)2SO4 is −2.