Skip to content

JSONDeserializer Creating empty objects instead of null #730

Closed
@BHare1985

Description

@BHare1985

using RestSharp version 105.1.0.0 and the JsonDeserializer

Given a class such as

public class Test
{
        public Dictionary<string, object> attributes { get; set; }
}

and Using JSON result:

{
    "attributes": {
        "THIS_SHOULD_BE_NULL": null,
        "NUMBER": 6
    }
}

The result is a Dictionary<string, object> where Dictionary["THIS_SHOULD_BE_NULL"] is an empty object instead of NULL. With Newtonsoft JSON.net the results in NULL (What I expect and want)

ps: I dont use google groups.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions