class Thrift::JSONContext

Class to serve as base JSON context and as base class for other context implementations

Public Instance Methods

escapeNum() click to toggle source

Return true if numbers need to be escaped as strings in this context. Default behavior is to return false.

   # File lib/thrift/protocol/json_protocol.rb
71 def escapeNum
72   return false
73 end
read(reader) click to toggle source

Read context data from the trans. Default is to do nothing.

   # File lib/thrift/protocol/json_protocol.rb
64 def read(reader)
65 end
write(trans) click to toggle source

Write context data to the trans. Default is to do nothing.

   # File lib/thrift/protocol/json_protocol.rb
58 def write(trans)
59 end