modified main.cpp
(print JSON text etc.)