Skip to content

handle Nullable Types #49

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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