MCPcopy
hub / github.com/pquerna/ffjson / CaptureField

Method CaptureField

fflib/v1/lexer.go:564–566  ·  view source on GitHub ↗

Captures an entire field value, including recursive objects, and converts them to a []byte suitable to pass to a sub-object's UnmarshalJSON

(start FFTok)

Source from the content-addressed store, hash-verified

562// and converts them to a []byte suitable to pass to a sub-object's
563// UnmarshalJSON
564func (ffl *FFLexer) CaptureField(start FFTok) ([]byte, error) {
565 return ffl.scanField(start, true)
566}
567
568func (ffl *FFLexer) SkipField(start FFTok) error {
569 _, err := ffl.scanField(start, false)

Callers 1

TestCaptureFunction · 0.95

Calls 1

scanFieldMethod · 0.95

Tested by 1

TestCaptureFunction · 0.76