Skip to content

Commit 04f8883

Browse files
committed
docs: document the bug extracting from array of strings (keyA>keyB>[0])
Signed-off-by: Leonardo Di Donato <[email protected]>
1 parent fb6ca3b commit 04f8883

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugin.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ func (e JSONSelectEncoder) EncodeEntry(entry zapcore.Entry, fields []zapcore.Fie
109109
return buf, err
110110
}
111111

112+
// fixme > indexing array of strings not working at the moment
113+
// fixme > this is a bug in jsonparser (see https://github.com/buger/jsonparser/issues/232)
114+
// todo > workaround by iterating on paths and calling jsonparser.Get()
112115
res := []byte{'{', '}'}
113116
jsonparser.EachKey(
114117
buf.Bytes(),

0 commit comments

Comments
 (0)