A Go package providing methods for reading and writing JSON text sequences
(application/json-seq
) as defined in RFC 7464 (https://tools.ietf.org/html/rfc7464).
_ = jsonseq.NewEncoder(os.Stdout).Encode("Test")
// �"Test"
_ = jsonseq.WriteRecord(os.Stdout, []byte(`{"id":2}`))
// �{"id":2}
var i interface{}
d := jsonseq.NewDecoder(strings.NewReader(`�{"id":1} �1234�1234 �true discarded junk`))
_ = d.Decode(&i)
fmt.Println(i)
// map[id:1]