We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
package main import jsoniter "github.com/json-iterator/go" var json = jsoniter.ConfigCompatibleWithStandardLibrary func main() { a := &A{} a.B1 = &B{a} ping := &Ping{a} json.Marshal(ping) } type Ping struct { Pong *A } type A struct { B1 *B } type B struct { A1 *A }
This code will panic with runtime: goroutine stack exceeds 1000000000-byte limit
runtime: goroutine stack exceeds 1000000000-byte limit
Platform: go version go1.9 darwin/amd64
go version go1.9 darwin/amd64
ref golang/go#10769
The text was updated successfully, but these errors were encountered:
jsoniter is compatible with encoding/json. If this is fixed in encoding/json, I will fix it as well.
Tracking recursion is possible in user extension, for example: https://github.com/v2pro/plz/blob/master/witch/exporter.go
The Attachment field in Stream and Iterator is added to support this kind of tracking
Attachment
Sorry, something went wrong.
@taowen this has been fixed in encoding/json, see https://go-review.googlesource.com/c/go/+/187920
It is still not supported.
It is still not supported
No branches or pull requests
This code will panic with
runtime: goroutine stack exceeds 1000000000-byte limit
Platform:
go version go1.9 darwin/amd64
ref golang/go#10769
The text was updated successfully, but these errors were encountered: