Skip to content

handle Nullable Types #49

@vletoux

Description

@vletoux

The parser is not compatible with nullable types (int? for example)

It can be done by adding:

            if (Nullable.GetUnderlyingType(type) != null)
            {
                return ParseValue(Nullable.GetUnderlyingType(type), json);
            }

to
https://github.com/zanders3/json/blob/master/src/JSONParser.cs#L251-L252

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions