Skip to content
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

Serialize object graph down to the certain depth #84

Open
cemmerven opened this issue Mar 30, 2020 · 1 comment
Open

Serialize object graph down to the certain depth #84

cemmerven opened this issue Mar 30, 2020 · 1 comment
Assignees
Labels
Feature Issue tracking a feature request, or WIP Low Priority up-for-grabs something that can be solved by the community, PRs welcome!

Comments

@cemmerven
Copy link

Like Newtonsoft's Json serializer, serializing object graph to the certain depth may be useful in some use cases like O/R Mappers. (P.S. newtonsoft is actually limit depth while deserializing but not serializing).
Stack overflow json.net limit maxdepth when serializing discussion is a good example of such scenario.

@rikimaru0345 rikimaru0345 added Feature Issue tracking a feature request, or WIP Low Priority up-for-grabs something that can be solved by the community, PRs welcome! labels Apr 1, 2020
@rikimaru0345
Copy link
Owner

There are settings to limit the maximum number of elements in collections, max length of strings, etc.. everything that is dynamic.
Except for "depth", there's no setting for that yet.
I guess it could be added into the ReferenceFormatter pretty easily, just increase/decrease a value in ceras.InstanceData...

Unfortunately I don't have any time currently to work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Issue tracking a feature request, or WIP Low Priority up-for-grabs something that can be solved by the community, PRs welcome!
Projects
None yet
Development

No branches or pull requests

2 participants