get rid of some of the HTML escaping that plagues golang json.

This commit is contained in:
fiatjaf
2024-11-11 23:09:15 -03:00
parent 9a9e96a829
commit a187e448f2
3 changed files with 4 additions and 5 deletions

View File

@@ -2,7 +2,6 @@ package main
import (
"context"
"encoding/json"
"fmt"
"os"
"strings"
@@ -277,7 +276,7 @@ example:
// print event as json
var result string
if c.Bool("envelope") {
j, _ := json.Marshal(nostr.EventEnvelope{Event: evt})
j, _ := easyjson.Marshal(nostr.EventEnvelope{Event: evt})
result = string(j)
} else {
j, _ := easyjson.Marshal(&evt)