Skip to content

Failed to Deserialize string to Dictionary<string, string> v.1.0.15.2 #94

@hhblaze

Description

@hhblaze

Hi,
Supplied string (taken from file) deserialized incorrectly:

string json = "{
    "de":
        "{
            "panel_title": "registration",
            "greeting": "Please register yourself in the system",
            "enter_imei": "Enter device number",
            "enter_email": "Enter your address",
            "enter_password": "Choose password",
            "enter_companyid": "Company ID",
            "enter_lblCompanyid": "Company ID",
            "submit": "Submit",
            "registration_completed": "Registration completed! Please read your E-Mail for further instructions.",
            "empty": ""
        }",
    "us":
        "usa",
    "ru":
        "rus"
}";


            NetJSON.NetJSON.IncludeFields = true;
            var res = NetJSON.NetJSON.Deserialize<Dictionary<string, string>>(json);

Received result is wrong

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