Jamie Markle

Results 7 comments of Jamie Markle

FWIW I've switched to [easyjson](https://github.com/mailru/easyjson).

It's an internal interface but yeah, the only alternative I see is to add the flag to `fflib.EncodingBuffer` somehow and that seemed like a worse option.

> I'm using > > ``` > buf, err := ffjson.Marshal(&item) > ``` > > and < is getting escaped in serialized values. I'd like to disable that, and this...

> Doesn't that lose the speed advantage of ffjson.Marshal()...? Right, sorry. It should be `ffjson.NewEncoder` in the example (now corrected).

`SetEscapeHTML()` only calls through to the fall-back `"encoding/json".Encoder` from the standard library. The ffjson generated code always escapes the "HTML unsafe" characters. If you encode a (non-pointer) struct it will...