Remove HTML escaping to json marshaling

This commit is contained in:
2022-09-20 22:01:52 +02:00
parent 3cd8aabd83
commit 49b4d97803
3 changed files with 24 additions and 4 deletions

View File

@ -6,6 +6,7 @@ import (
log "github.com/sirupsen/logrus"
"git.metabarcoding.org/lecasofts/go/obitools/pkg/goutils"
"git.metabarcoding.org/lecasofts/go/obitools/pkg/obiseq"
"github.com/goccy/go-json"
)
@ -70,7 +71,7 @@ func FormatFastSeqJsonHeader(sequence *obiseq.BioSequence) string {
annotations := sequence.Annotations()
if annotations != nil {
text, err := json.Marshal(sequence.Annotations())
text, err := goutils.JsonMarshal(sequence.Annotations())
if err != nil {
panic(err)