lib/cpp: first JsonProtocol test working