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.
()
| 111 | // at configured emit depth are within a JSON object. By default, only |
| 112 | // the object values are emitted. |
| 113 | func (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 |
no outgoing calls