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

Cannot serialize Duration #4

Open
fyfrey opened this issue Jun 20, 2020 · 0 comments
Open

Cannot serialize Duration #4

fyfrey opened this issue Jun 20, 2020 · 0 comments

Comments

@fyfrey
Copy link

fyfrey commented Jun 20, 2020

Hi,
asdf fails to serialize a struct with phobos Duration in it:

/+dub.sdl:
dependency "asdf" version="~>0.5.7"
+/
import std.stdio;
import std.datetime;
import asdf;
void main()
{
    A a;
    string json = serializeToJsonPretty(a); // never ends
    writeln("json length ", json.length);
}

struct A
{
    Duration dur;
}

This errors with an OOM exception in the appender. Somehow in writes never-ending zero": { strings to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant