Made some fixes to jsonitem.h and jsonmain.cpp