added classtoJson