THRIFT-3631 JSON protocol implement for thrift-lua library.
THRIFT-3631 Lua-This is JSON protocol implement for thrift-lua library.
TJsonProtocol.lua is new source of lua for thrift JSON protocol.
diff --git a/test/lua/test_basic_client.lua b/test/lua/test_basic_client.lua
index b89f25d..dcaca29 100644
--- a/test/lua/test_basic_client.lua
+++ b/test/lua/test_basic_client.lua
@@ -20,6 +20,7 @@
require('TBufferedTransport')
require('TFramedTransport')
require('TCompactProtocol')
+require('TJsonProtocol')
require('TBinaryProtocol')
require('ThriftTest_ThriftTest')
require('liblualongnumber')
@@ -73,6 +74,7 @@
local protocols = {
binary = TBinaryProtocol,
compact = TCompactProtocol,
+ json = TJSONProtocol,
}
assert(protocols[opt.protocol] ~= nil)
local protocol = protocols[opt.protocol]:new{