-
Notifications
You must be signed in to change notification settings - Fork 42
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
marshal an object with not export self pointer reference will run forever #31
Comments
Currently hjson-go does marshal all private struct members. Removing that behavior would be a breaking change. I would rather mention in the Readme.md that circular references will cause the Marshal function to loop forever. |
Thanks, I do not know that reflect can read private field value yet. |
I realize now that there is no documentation of the fact that Hjson supports json-annotation of structs. You can choose to skip the field
|
The current behavior is not consistent with json.Marshal of such an object. |
It should ignore all not export field.
The text was updated successfully, but these errors were encountered: