C++-ified pb2json.