finished JSon convert. Untested