MCPcopy Create free account
hub / github.com/bcicen/jstream / EmitKV

Method EmitKV

decoder.go:113–116  ·  view source on GitHub ↗

EmitKV enables emitting a jstream.KV struct when the items(s) parsed at configured emit depth are within a JSON object. By default, only the object values are emitted.

()

Source from the content-addressed store, hash-verified

111// at configured emit depth are within a JSON object. By default, only
112// the object values are emitted.
113func (d *Decoder) EmitKV() *Decoder {
114 d.emitKV = true
115 return d
116}
117
118// Recursive enables emitting all values at a depth higher than the
119// configured emit depth; e.g. if an array is found at emit depth, all

Callers 2

mainFunction · 0.95
TestDecoderMultiDocFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestDecoderMultiDocFunction · 0.64