Implemented JSON messages handling with jsoncpp