c# litjson:JsonException: Can‘t assign value ‘0‘ (type System.String) to type System.Int32

JsonException: Can't assign value '0' (type System.String) to type System.Int32

in the

{
    
    "Count":"0"}

incoming

JsonMapper.ToObject<Dictionary<string, string>>(str)

When str, report this error, just change the name of Count, I don’t know what’s special about this name

Guess you like

Origin blog.csdn.net/baidu_38392815/article/details/123847099