Skip to content

Instantly share code, notes, and snippets.

@demofan
Created October 1, 2015 07:10
Show Gist options
  • Save demofan/7fefc9ffc561e51c7e40 to your computer and use it in GitHub Desktop.
Save demofan/7fefc9ffc561e51c7e40 to your computer and use it in GitHub Desktop.
var jsonstring="[{中文="A"},{中文="B"}]"
class JsonForSearch
{
[JsonProperty("中文")]
public string pname { get; set; }
}
反序列化要吃的到
再次序列化的值希望是
"[{pname="A"},{pname="B"}]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment