Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Yinan county plastic surgery hospital plastic surgery
Yinan county plastic surgery hospital plastic surgery
Install json.net Control and use Newtonsoft. Json . Linq

In this way, you can get the content corresponding to the desired tag.

string text = " renderReverse & amp& amprenderReverse({\"status\":0,\ " result \ ":{ \ " location \ ":{ \ " LNG \ ": 1 16.32298703399,\ "lat\":39.98342405 1248}, \"formatted_address\":\" Room 27, Zhongguancun Street, Haidian District, Beijing101-08 \ " \ "dot \ ":{\" X \ ": 15438+06, \", \ "uid \": \ "35a08504cb51b165444. Office building \ ",\" tel \ ":\", \ "uid \": \ "06ddffdaef1b7ef88f15d04 \", \" Zip \ ":\"}, {"distance \. ",\"poiType\":\" medical treatment \ ",\ "point \": {\ "x \": 65438+. \ ",\" tel \": \", \ "uid \": \ "b1c556E81f27cb71b4265502 \", \ "zip \": \ " ",\" Name \ ":\" Zhongguancun Business Department of China People's Property Insurance Company \ ",\"poiType\":\" Finance \ ",\. \ ",\" tel \ ":\ ",\ " uid \ ":\ " 060 Fe 53 137 D2 od 708 1cc 779 \ ",\" zip \ ":\"}。" Distance \":\"58\ ",\" Name \ ":\" Beijing Haidian Hospital-Blood Transfusion Department \ ",\"poiType\":\" Medical treatment \ ",\" point \ ":{\" x \ ":6543. Others \ ",\" tel \ ":\", \ "uid \": \ "cf405905b6b82eb9b55f1e89 \", \" zip \ ":\"}, \ ",\" "Meizhou Dongpo Restaurant (Zhongguancun Restaurant) \", \"poiType\":\ "gourmet \ ",\ "point \": {\ "x \" "Gourmet \", \ "Tel \": \ "uid \":. "Distance \":\"223\", \ "Name \": \ "Haidian Hospital \", \"poiType\":\ "Medical \", \ "Point \": {\ "x \":1. General Hospital \ ",\" Tel \ ":\" uid \ ":\" fa 01e 9371a040053774ff1ca \ ",\" Zip code \ ":\" Cinema \ ",\" Tel \ ":\ ",\ " uid \ ":\ " edd 64 ce 16d 799 13ee 23 1 B3 \ ",\" Zip \ ":\ ",\" distance \ ":\" 375 \ ",\" name \ ":\" Zhongfa Electronic Market (Zhongguancun Street) \ ",\"poiType\":\ "Shopping \", \ "Point \": {\ "x \ ". \ ",\" tel \": \", \ "uid \": \ "69130523db34c811725e8047 \", \ "zip \": \ " ":\" Pan Asia Mansion \ ",\"poiType\":\" Real Estate \ ",\" Office Building \ ",\" Tel \ ":\", \ "UID \ ":\" d 24 e 48 ebb 99655.

//Keep only Json content.

Text = text. Delete (text. Length-1). Delete (0, 29);

job object jo =(job object)Newton soft。 JSON . JSON convert . deserialize object(text);

//Get the contents of the specified tag

MessageBox。 show(jo[" result "][" address component "][" district "]。 ToString());