MCPcopy Create free account
hub / github.com/apache/thrift / OutputObjectEnd

Method OutputObjectEnd

lib/go/thrift/simple_json_protocol.go:771–783  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

769}
770
771func (p *TSimpleJSONProtocol) OutputObjectEnd() error {
772 if _, e := p.write(JSON_RBRACE); e != nil {
773 return NewTProtocolException(e)
774 }
775 _, ok := p.dumpContext.pop()
776 if !ok {
777 return errEmptyJSONContextStack
778 }
779 if e := p.OutputPostValue(); e != nil {
780 return e
781 }
782 return nil
783}
784
785func (p *TSimpleJSONProtocol) OutputListBegin() error {
786 if e := p.OutputPreValue(); e != nil {

Callers 4

WriteStructEndMethod · 0.95
WriteStructEndMethod · 0.80
WriteFieldEndMethod · 0.80
WriteMapEndMethod · 0.80

Calls 4

writeMethod · 0.95
OutputPostValueMethod · 0.95
NewTProtocolExceptionFunction · 0.85
popMethod · 0.45

Tested by

no test coverage detected