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

InvalidProgramException when serializing types containing JilPrimitiveWrappers #346

Open
petersalas opened this issue Oct 13, 2020 · 0 comments

Comments

@petersalas
Copy link

With the following types:

[JilPrimitiveWrapper]
public class JilPrimitive
{
    public readonly string Value;

    public JilPrimitive(string value)
    {
        this.Value = value;
    }
}

public class JilPrimitiveContainer
{
    public JilPrimitive Single { get; set; }
    public List<JilPrimitive> List { get; set; }
}

JSON serialization of JilPrimitiveContainer (e.g. Jil.JSON.Serialize(new JilPrimitiveContainer());) in 2.17.0 fails with a System.InvalidProgramException.

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