Guest User

Untitled

a guest
Apr 25th, 2018
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.06 KB | None | 0 0
  1.             string s = @"[{""as_of"":""2011-12-10T19:44:15Z"",""created_at"":""2011-12-10T19:40:35Z"",""trends"":[{""query"":""%22Xavier%20and%20Cincinnati%22"",""name"":""Xavier and Cincinnati"",""events"":null,""promoted_content"":null,""url"":""http:\/\/twitter.com\/search\/%22Xavier%20and%20Cincinnati%22""},{""query"":""%22You%20Got%20It%20Bad%22"",""name"":""You Got It Bad"",""promoted_content"":null,""events"":null,""url"":""http:\/\/twitter.com\/search\/%22You%20Got%20It%20Bad%22""},{""query"":""%22Kenny%20Frease%22"",""name"":""Kenny Frease"",""events"":null,""promoted_content"":null,""url"":""http:\/\/twitter.com\/search\/%22Kenny%20Frease%22""},{""query"":""%23brawl"",""name"":""#brawl"",""promoted_content"":null,""events"":null,""url"":""http:\/\/twitter.com\/search\/%23brawl""},{""query"":""%22This%20Is%20Justin%20Bieber%22"",""name"":""This Is Justin Bieber"",""events"":null,""promoted_content"":null,""url"":""http:\/\/twitter.com\/search\/%22This%20Is%20Justin%20Bieber%22""},{""query"":""%23espn2"",""name"":""#espn2"",""promoted_content"":null,""events"":null,""url"":""http:\/\/twitter.com\/search\/%23espn2""},{""promoted_content"":null,""query"":""%22Army%20vs%20Navy%22"",""name"":""Army vs Navy"",""events"":null,""url"":""http:\/\/twitter.com\/search\/%22Army%20vs%20Navy%22""},{""query"":""%23Goiabinha"",""name"":""#Goiabinha"",""promoted_content"":null,""events"":null,""url"":""http:\/\/twitter.com\/search\/%23Goiabinha""},{""query"":""%22Yancy%20Gates%22"",""name"":""Yancy Gates"",""events"":null,""promoted_content"":null,""url"":""http:\/\/twitter.com\/search\/%22Yancy%20Gates%22""},{""query"":""%22The%20Hot%20Chick%22"",""name"":""The Hot Chick"",""events"":null,""promoted_content"":null,""url"":""http:\/\/twitter.com\/search\/%22The%20Hot%20Chick%22""}],""locations"":[{""name"":""Worldwide"",""woeid"":1}]}]";
  2.             OSD res = OSDParser.DeserializeJson(s);
  3.             if (res is OSDArray)
  4.             {
  5.                 OSDMap map = (OSDMap)((OSDArray)res)[0];
  6.                 System.Console.WriteLine(map["as_of"].AsString());
  7.             }
Add Comment
Please, Sign In to add comment