From c5342e90974c7b857b462b06afdcbd3498a1bcf4 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Mon, 5 Jul 2021 23:45:03 +0200 Subject: wip: debug with stdlib json --- skate/reduce.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'skate') diff --git a/skate/reduce.go b/skate/reduce.go index 61e8cd6..c941a67 100644 --- a/skate/reduce.go +++ b/skate/reduce.go @@ -26,6 +26,8 @@ import ( "sync" "time" + stdjson "encoding/json" + "git.archive.org/martin/cgraph/skate/set" "git.archive.org/martin/cgraph/skate/xio" "git.archive.org/martin/cgraph/skate/zipkey" @@ -64,7 +66,7 @@ func groupLogf(g *zipkey.Group, s string, vs ...interface{}) { // match result, e.g. for doi matches. func ZippyExact(releases, refs io.Reader, matchResult MatchResult, w io.Writer) error { var ( - enc = xio.NewSafeEncoder(json.NewEncoder(w)) + enc = xio.NewSafeEncoder(stdjson.NewEncoder(w)) keyer = makeKeyFunc("\t", 1) i = 0 bref BiblioRef -- cgit v1.2.3