-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
json-iterator/go is not 100% compatible drop-in replacement of encoding/json #229
Comments
no one is asking for them |
HTML Escaping is supported through the following, I think: func jsonIteratorMarshalAddNewLineNoEscapeHTML(v interface{}) ([]byte, error) {
buffer := &bytes.Buffer{}
encoder := jsonIterator.NewEncoder(buffer)
encoder.SetEscapeHTML(false)
err := encoder.Encode(v)
return buffer.Bytes(), err
} |
The readme says "100% compatibility with standard lib". I think that if this line were removed, this issue could be resolved... |
#313 relates to this. |
I agree that the README should be updated to convey which parts are not compatible with
I had wanted to try out switching to |
Any updates on this? I'm asking. 👋 I'm just hit this issue. 🙈 |
Another issue: #657 |
Hey,how can i export '&' char on my json by using json-iterator,could every one give me advice? |
Several functions missing. Like Compact/Indent/HTMLEscape/Decoder.Token etc.
The text was updated successfully, but these errors were encountered: