MCPcopy Create free account
hub / github.com/buger/jsonparser / MarshalJSON

Method MarshalJSON

benchmark/benchmark_ffjson.go:1437–1448  ·  view source on GitHub ↗

Benchmark harness support for STK-REQ-004.

()

Source from the content-addressed store, hash-verified

1435
1436// Benchmark harness support for STK-REQ-004.
1437func (mj *DSTopicsList) MarshalJSON() ([]byte, error) {
1438 var buf fflib.Buffer
1439 if mj == nil {
1440 buf.WriteString("null")
1441 return buf.Bytes(), nil
1442 }
1443 err := mj.MarshalJSONBuf(&buf)
1444 if err != nil {
1445 return nil, err
1446 }
1447 return buf.Bytes(), nil
1448}
1449
1450// Benchmark harness support for STK-REQ-004.
1451func (mj *DSTopicsList) MarshalJSONBuf(buf fflib.EncodingBuffer) error {

Callers

nothing calls this directly

Calls 1

MarshalJSONBufMethod · 0.95

Tested by

no test coverage detected