Cleaned up jsonmain.cpp