Thrift: Add a full-featured JSON protocol for C++.
authorDavid Reiss <dreiss@apache.org>
Mon, 18 Feb 2008 01:49:37 +0000 (01:49 +0000)
committerDavid Reiss <dreiss@apache.org>
Mon, 18 Feb 2008 01:49:37 +0000 (01:49 +0000)
commitdb0ea15310339c504f37128e49421bba58051933
tree50e25907ca864ba90804ca3754238fdd514dc722
parentc005b1b65ed24bba18e843c85b9a2a281bfec265
Thrift: Add a full-featured JSON protocol for C++.

Summary:
This change adds a new and exciting protocol to Thrift.  It uses
RFC-compliant JSON as the wire protocol and is fully human readable.
(once a little whitespace has been inserted.)  Unlike the existing
JSON protocol for Java, which is intended to allow Thrift data to be
transferred to scripting languages, this protocol is lossless and fully
read-write.  It was written by Chad Walters of Powerset and reviewed
by David Reiss.

Tested by running make check.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665482 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/Makefile.am
lib/cpp/src/protocol/TBase64Utils.cpp [new file with mode: 0644]
lib/cpp/src/protocol/TBase64Utils.h [new file with mode: 0644]
lib/cpp/src/protocol/TJSONProtocol.cpp [new file with mode: 0644]
lib/cpp/src/protocol/TJSONProtocol.h [new file with mode: 0644]
test/DebugProtoTest.thrift
test/JSONProtoTest.cpp [new file with mode: 0644]
test/Makefile.am