Google+のAPIの戻り値に"object"というオブジェクトデータがあり、
これがC#の予約後に引っかかってしまい、NewtonsoftのJSONパーサで解析をしていると無理になります。
https://developers.google.com/+/api/latest/activities#resource
なので
- private ObjectData objectValue;
- [Newtonsoft.Json.JsonPropertyAttribute("object")]
- public virtual ObjectData Object
- {
- get
- {
- return this.objectValue;
- }
- set
- {
- this.objectValue = value;
- }
- }
private ObjectData objectValue;
[Newtonsoft.Json.JsonPropertyAttribute("object")]
public virtual ObjectData Object
{
get
{
return this.objectValue;
}
set
{
this.objectValue = value;
}
}
とすればOKです。
0 件のコメント:
コメントを投稿