ssetup with json enc/dec