1. 程式人生 > >OkHttp請求json資料

OkHttp請求json資料

* data : {"docinfo":[{"uid":"1718","docid":"2016041303","userid":"2016041303","name":"趙治國","answers":0,"headimg":"https://ohdrjnjvc.qnssl.com//attached/Kzyisheng/2/ad787f4219a33e23.png?imageView2/1/w/200/h/200","office_id":"7","office_name":"面板性病科","good_at":"痤瘡,過敏性面板病,性傳播疾病以及病毒感染面板病的診斷與治療。","desc":"","jobs":"主治醫師","hos_name":"中國人民解放軍空軍總醫院","reg_id":"2","service":{"type_1":{"type":"1","is_on":1},"type_2":{"type":"2","is_on":1},"type_3":{"type":"3","is_on":1},"type_4":{"type":"4","is_on":0},"type_5":{"type":"5","is_on":0}},"auth_type":"認證醫生","ys_attribute":""},{"uid":"1664","docid":"2016040536","userid":"2016040536","name":"高偉","answers":0,"headimg":"https://ohdrjnjvc.qnssl.com//attached/Kzyisheng/2/c348ab4a25d09d85.png?imageView2/1/w/200/h/200","office_id":"7","office_name":"面板性病科","good_at":"常見面板病診斷治療","desc":" ","jobs":"主治醫師","hos_name":"北京大學第一醫院","reg_id":"2","service":{"type_1":{"type":"1","is_on":1},"type_2":{"type":"2","is_on":0},"type_3":{"type":"3","is_on":1},"type_4":{"type":"4","is_on":0},"type_5":{"type":"5","is_on":0}},"auth_type":"認證醫生","ys_attribute":""},{"uid":"1786","docid":"2016036959","userid":"2016036959","name":"程明明","answers":0,"headimg":"https://ohdrjnjvc.qnssl.com//attached/Kzyisheng/2/d5d6074a6ce7d302.JPG?imageView2/1/w/200/h/200","office_id":"7","office_name":"面板性病科","good_at":"常見面板病","desc":" ","jobs":"主治醫師","hos_name":"北京大學第一醫院","reg_id":"2","service":{"type_1":{"type":"1","is_on":1},"type_2":{"type":"2","is_on":0},"type_3":{"type":"3","is_on":1},"type_4":{"type":"4","is_on":0},"type_5":{"type":"5","is_on":0}},"auth_type":"認證醫生","ys_attribute":""},{"uid":"719","docid":"2015117732","userid":"2015117732","name":"賈玲芝","answers":0,"headimg":"https://ohdrjnjvc.qnssl.com//attached/yisheng/719/yishengtouxiang3781469018682.jpg?imageView2/1/w/200/h/200","office_id":"7","office_name":"面板性病科","good_at":"面板科","desc":"我是一名醫生","jobs":"主治醫師","hos_name":"日照市面板病防治所","reg_id":"22","service":{"type_1":{"type":"1","is_on":1},"type_2":{"type":"2","is_on":0},"type_3":{"type":"3","is_on":0},"type_4":{"type":"4","is_on":0},"type_5":{"type":"5","is_on":0}},"auth_type":"認證醫生","ys_attribute":""},{"uid":"3071","docid":"13956085560270","userid":"13956085560270","name":"丁成標","answers":0,"headimg":"https://ohdrjnjvc.qnssl.com//attached/yisheng/3071/yishengtouxiang7191479396210.jpg?imageView2/1/w/200/h/200","office_id":"8","office_name":"中醫科","good_at":"中西醫結合治療各類面板病及內婦科疾病。","desc":"","jobs":"主治醫師","hos_name":"肥東縣中醫院","reg_id":"3","service":{"type_1":{"type":"1","is_on":1},"type_2":{"type":"2","is_on":1},"type_3":{"type":"3","is_on":0},"type_4":{"type":"4","is_on":1},"type_5":{"type":"5","is_on":0}},"auth_type":"認證醫生","ys_attribute":""},{"uid":"1369","docid":"2016021257","userid":"2016021257","name":"張曉紅","answers":0,"headimg":"https://ohdrjnjvc.qnssl.com//attached/yisheng/1369/yishengtouxiang5911469011153.jpg?imageView2/1/w/200/h/200","office_id":"7","office_name":"面板性病科","good_at":"常見面板病性病的診療","desc":"","jobs":"主治醫師","hos_name":"北京京煤集團總醫院","reg_id":"2","service":{"type_1":{"type":"1","is_on":1},"type_2":{"type":"2","is_on":1},"type_3":{"type":"3","is_on":1},"type_4":{"type":"4","is_on":1},"type_5":{"type":"5","is_on":0}},"auth_type":"","ys_attribute":""},{"uid":"896","docid":"2015114760","userid":"2015114760","name":"汪豔梅","answers":0,"headimg":"https://ohdrjnjvc.qnssl.com//attached/yisheng/896/1467214863.jpg?imageView2/1/w/200/h/200","office_id":"7","office_name":"面板性病科","good_at":"面板病","desc":"醫師","jobs":"醫師","hos_name":"昆明醫學院第二附屬醫院","reg_id":"30","service":{"type_1":{"type":"1","is_on":1},"type_2":{"type":"2","is_on":1},"type_3":{"type":"3","is_on":1},"type_4":{"type":"4","is_on":1},"type_5":{"type":"5","is_on":0}},"auth_type":"認證醫生","ys_attribute":"可開處方"},{"uid":"2958","docid":"13654868158253","userid":"13654868158253","name":"王少飛","answers":0,"headimg":"https://ohdrjnjvc.qnssl.com//attached/Kzyisheng/3/51b167c813a99f19.png?imageView2/1/w/200/h/200","office_id":"7","office_name":"面板性病科","good_at":"純中藥結合308準分子鐳射,紅藍光,半導體鐳射治療:青春期痤瘡,銀屑病,魚鱗病,白癜風,蕁麻疹,溼疹,神經性皮炎,面部黃褐斑,過敏性紫癜,帶狀皰疹及後遺神經痛,手足癬等各種頑固性疾病及性傳播疾病。","desc":"","jobs":"主治醫師","hos_name":"赤峰市釣魚臺社群衛生服務站","reg_id":"19","service":{"type_1":{"type":"1","is_on":1},"type_2":{"type":"2","is_on":1},"type_3":{"type":"3","is_on":1},"type_4":{"type":"4","is_on":1},"type_5":{"type":"5","is_on":0}},"auth_type":"認證醫生","ys_attribute":"可開處方"},{"uid":"1445","docid":"2016029001","userid":"2016029001","name":"禚洪萍","answers":0,"headimg":"https://ohdrjnjvc.qnssl.com//attached/yisheng/1445/yishengtouxiang2211464080993.jpg?imageView2/1/w/200/h/200","office_id":"7","office_name":"面板性病科","good_at":"過敏性疾病,銀屑病(俗稱\u201c牛皮癬\u201d),白癜風,斑禿(俗稱\u201c鬼剃頭\u201d),大皰性面板病,結締組織病等,性傳播疾病(比如淋病,支原體感染,衣原體感染,梅毒,艾滋病)。","desc":"","jobs":"主治醫師","hos_name":"郯城縣面板病防治站","reg_id":"22","service":{"type_1":{"type":"1","is_on":1},"type_2":{"type":"2","is_on":0},"type_3":{"type":"3","is_on":1},"type_4":{"type":"4","is_on":0},"type_5":{"type":"5","is_on":0}},"auth_type":"認證醫生","ys_attribute":"可開處方"},{"uid":"699","docid":"2015113939","userid":"2015113939","name":"白金","answers":0,"headimg":"https://ohdrjnjvc.qnssl.com//attached/Kzyisheng/1/0915f9aad82f7556.jpg?imageView2/1/w/200/h/200","office_id":"7","office_name":"面板性病科","good_at":"面板","desc":"面板","jobs":"主治醫師","hos_name":"保定市第七醫院","reg_id":"10","service":{"type_1":{"type":"1","is_on":1},"type_2":{"type":"2","is_on":0},"type_3":{"type":"3","is_on":1},"type_4":{"type":"4","is_on":0},"type_5":{"type":"5","is_on":0}},"auth_type":"","ys_attribute":""},{"uid":"710","docid":"2015117476","userid":"2015117476","name":"李科","answers":0,"headimg":"https://ohdrjnjvc.qnssl.com//attached/yisheng/710/yishengtouxiang5961468737903.jpg?imageView2/1/w/200/h/200","office_id":"7","office_name":"面板性病科","good_at":"面板性病,醫學美容。","desc":"肥嘟嘟的","jobs":"主治醫師","hos_name":"大竹縣疾病預防控制中心門診部","reg_id":"26","service":{"type_1":{"type":"1","is_on":1},"type_2":{"type":"2","is_on":0},"type_3":{"type":"3","is_on":1},"type_4":{"type":"4","is_on":0},"type_5":{"type":"5","is_on":0}},"auth_type":"認證醫生","ys_attribute":""},{"uid":"1244","docid":"2016016619","userid":"2016016619","name":"王彩梅","answers":0,"headimg":"https://ohdrjnjvc.qnssl.com//attached/yisheng/1244/yishengtouxiang1261467275293.jpg?imageView2/1/w/200/h/200","office_id":"7","office_name":"面板性病科","good_at":"常見面板病的診治~蕁麻疹~溼疹自身免疫性面板病","desc":"盡最大的努力為你解除面板病的困擾","jobs":"主治醫師","hos_name":"宜興市面板病醫院","reg_id":"16","service":{"type_1":{"type":"1","is_on":1},"type_2":{"type":"2","is_on":1},"type_3":{"type":"3","is_on":1},"type_4":{"type":"4","is_on":0},"type_5":{"type":"5","is_on":0}},"auth_type":"","ys_attribute":"可開處方"},{"uid":"990","docid":"2015113760","userid":"2015113760","name":"諸蓉","answers":0,"headimg":"https://ohdrjnjvc.qnssl.com//attached/yisheng/990/yishengtouxiang3031457431924.png?imageView2/1/w/200/h/200","office_id":"7","office_name":"面板性病科","good_at":"痤瘡\r\n","desc":"醫生","jobs":"醫師","hos_name":"四川省人民醫院","reg_id":"26","service":{"type_1":{"type":"1","is_on":1},"type_2":{"type":"2","is_on":0},"type_3":{"type":"3","is_on":1},"type_4":{"type":"4","is_on":0},"type_5":{"type":"5","is_on":0}},"auth_type":"認證醫生","ys_attribute":""},{"uid":"1249","docid":"2016015962","userid":"2016015962","name":"孫麗華","answers":0,"headimg":"https://ohdrjnjvc.qnssl.com//attached/yisheng/1249/yishengtouxiang9661467703761.jpg?imageView2/1/w/200/h/200","office_id":"7","office_name":"面板性病科","good_at":"陸軍總醫院在讀鐳射美容專業博士,擅長治療和修復面部色素性、血管性、脂溢性、敏感性及老化性面板。對痤瘡及敏感肌治療護理有獨到的見解和心得。願成為您面板的健康使者。","desc":"主治醫師","jobs":"主治醫師","hos_name":"北京軍區總醫院","reg_id":"2","service":{"type_1":{"type":"1","is_on":1},"type_2":{"type":"2","is_on":0},"type_3":{"type":"3","is_on":1},"type_4":{"type":"4","is_on":0},"type_5":{"type":"5","is_on":0}},"auth_type":"","ys_attribute":""},{"uid":"1537","docid":"2016036175","userid":"2016036175","name":"王茜","answers":0,"headimg":"https://ohdrjnjvc.qnssl.com//attached/yisheng/1537/yishengtouxiang3081460187238.png?imageView2/1/w/200/h/200","office_id":"7","office_name":"面板性病科","good_at":"面板病","desc":" ","jobs":"住院醫師","hos_name":"衛生部北京醫院","reg_id":"2","service":{"type_1":{"type":"1","is_on":1},"type_2":{"type":"2","is_on":0},"type_3":{"type":"3","is_on":1},"type_4":{"type":"4","is_on":0},"type_5":{"type":"5","is_on":0}},"auth_type":"認證醫生","ys_attribute":""},{"uid":"1548","docid":"2016039269","userid":"2016039269","name":"李蕾","answers":0,"headimg":"https://ohdrjnjvc.qnssl.com//attached/yisheng/1548/yishengtouxiang5261482878140.jpg?imageView2/1/w/200/h/200","office_id":"7","office_name":"面板性病科","good_at":"皮疹","desc":" ","jobs":"主治醫師","hos_name":"解放軍總醫院第一附屬醫院","reg_id":"2","service":{"type_1":{"type":"1","is_on":1},"type_2":{"type":"2","is_on":0},"type_3":{"type":"3","is_on":1},"type_4":{"type":"4","is_on":0},"type_5":{"type":"5","is_on":0}},"auth_type":"","ys_attribute":""},{"uid":"1308","docid":"2016020535","userid":"2016020535","name":"張小華","answers":0,"headimg":"https://ohdrjnjvc.qnssl.com//attached/yisheng/1308/yishengtouxiang1171457658471.png?imageView2/1/w/200/h/200","office_id":"8","office_name":"中醫科","good_at":"擅長各種面板病性病,擅長疾病有溼疹,蕁麻疹,皮炎,梅毒,尖銳溼疣,淋病,生殖器皰疹,艾滋病,對各種性病高危行為分析有比較權威的分析。","desc":"本人自遊家訓,後畢業於河南中醫學院。","jobs":"主治醫師","hos_name":"淮陽縣齊老鄉中心衛生院","reg_id":"11","service":{"type_1":{"type":"1","is_on":1},"type_2":{"type":"2","is_on":0},"type_3":{"type":"3","is_on":1},"type_4":{"type":"4","is_on":0},"type_5":{"type":"5","is_on":0}},"auth_type":"","ys_attribute":""},{"uid":"1455","docid":"2016024052","userid":"2016024052","name":"駱成濤","answers":0,"headimg":"https://ohdrjnjvc.qnssl.com//attached/yisheng/1455/yishengtouxiang6071457414389.jpg?imageView2/1/w/200/h/200","office_id":"7","office_name":"面板性病科","good_at":"常見面板病","desc":"","jobs":"主治醫師","hos_name":"杭州市江乾區人民醫院","reg_id":"31","service":{"type_1":{"type":"1","is_on":1},"type_2":{"type":"2","is_on":1},"type_3":{"type":"3","is_on":1},"type_4":{"type":"4","is_on":1},"type_5":{"type":"5","is_on":0}},"auth_type":"","ys_attribute":""},{"uid":"757","docid":"2015114993","userid":"2015114993","name":"王立昌","answers":0,"headimg":"https://ohdrjnjvc.qnssl.com//attached/Kzyisheng/1/7899f859afdf4dcf.png?imageView2/1/w/200/h/200","office_id":"7","office_name":"面板性病科","good_at":"常見面板病診療","desc":"從事面板病治療工作8年","jobs":"主治醫師","hos_name":"高密市面板病防治站","reg_id":"22","service":{"type_1":{"type":"1","is_on":1},"type_2":{"type":"2","is_on":1},"type_3":{"type":"3","is_on":1},"type_4":{"type":"4","is_on":1},"type_5":{"type":"5","is_on":0}},"auth_type":"","ys_attribute":"可開處方"},{"uid":"3066","docid":"13421230826148","userid":"13421230826148","name":"林粵龍","answers":0,"headimg":"https://ohdrjnjvc.qnssl.com//attached/yisheng/3066/yishengtouxiang3651462156353.jpg?imageView2/1/w/200/h/200","office_id":"7","office_name":"面板性病科","good_at":"面板、性病、內科常見疾病診療,有獨特見解。","desc":"","jobs":"住院醫師","hos_name":"陽春市人民醫院","reg_id":"6","service":{"type_1":{"type":"1","is_on":1},"type_2":{"type":"2","is_on":0},"type_3":{"type":"3","is_on":0},"type_4":{"type":"4","is_on":1},"type_5":{"type":"5","is_on":0}},"auth_type":"認證醫生","ys_attribute":""}],"office_list":[],"diqu":[]}

相關推薦

OkHttp請求json資料

* data : {"docinfo":[{"uid":"1718","docid":"2016041303","userid":"2016041303","name":"趙治國","answers":0,"headimg":"https://ohdrjnjvc.qnssl.com//attache

原生AJAX 請求JSON資料方式

這裡先給大家一個有實際json資料的連線: https://jsonplaceholder.typicode.com/posts 1.例項化XMLHttpRequest物件 var request; if (window.XMLHttpRequest) {   request = new

vue 處理後臺請求json資料,並渲染

後臺傳給前臺的json資料格式,這裡原本只是傳list資料給後臺,因為需要分頁,所以用pageInfo包了一下,成了json格式: { "data": { "endRow": 1, "firstPage": 1, "hasNextPage": false,

SpringMVC筆記九之ajax請求json資料

1、匯入jackson-annotations-2.2.1.jar,jackson-core-2.2.1.jar,jackson-databind-2.2.1.jar三個jar包,注意他們的版本要一致,不然會報錯。https://download.csdn.net/downl

python中post請求json資料且返回json資料處理

上篇講到以json形式傳送post請求。 此次為 post請求返回物件對json 時的處理辦法 請求 #請求 response = requests.post(url, data=json.dumps(pyload),headers=headers).text

ajax基於php頁面請求json資料

在jQuery中封裝有$.ajax方法可以直接來呼叫  ·testjson.html <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title

Java獲取post請求json資料

一般情況下,web應用中,瀏覽器傳送http請求,傳引數的時候都是作為param傳遞的,java服務端通過request.getParameter(name)可以獲取引數內容; 但是會有一些場景,把引數放在了http的payload中(contentType:”application/json”),這時,使

關於C#向伺服器請求json資料並解析

查了一下午+一晚上,什麼樣的回答都有,好些讓我感到十分無語。趕專案,沒總結出太高大上的用法,下面簡單講一下。 請求用的GET方法 HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url); WebRespons

http請求json資料1

<!DOCTYPE html> <html><head><meta charset="UTF-8"><title></title><style>#sd {border-radius: 10

使用okhttp 解析json資料

 okhttp還是挺好使用的,而且6.0版本里面已經不提倡使用了HttpClient,下面我們來說說okhttp的使用 1.我們在Android studio中新增對okhttp的依賴(本文是在建立在

C# Post請求json資料

//以html post方式請求json資料 private string Post(string strURL, string auth, string contentType, string jsonParas)         {             var h

AFNnetworking請求json資料

AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager]; NSString * po

【Chart.js】通過Ajax請求JSON資料來繪製圖表

背景   在使用Chart.js繪製圖表時,我們通常會有這樣的需求:從後臺方法動態獲取圖表的資料,而非Demo中使用的靜態資料。本文將分享如何使用Ajax動態請求JSON資料並且完成圖表的繪製。 解決方案 在html頁中新增對Ch

ArcGIS API for JS請求json資料 載入點到Graphics圖層

從專案內請求json檔案,使用的是dojo框架的請求方式,沒有使用jquery。中間因為經緯度搞反了,耽誤了很久  <!DOCTYPE html> <html> <head> <meta charset="utf-8"/&

jquery ajax非同步請求json資料

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www

okhttp傳送post請求攜帶json資料,並接收json資料

okhttp工具類: package tools; import com.squareup.okhttp.*; import java.io.File; import java.io.IOException; import java.util.concurrent.TimeUnit; /

android 中okhttp post請求傳遞json資料

public final static int CONNECT_TIMEOUT = 60; public final static int READ_TIMEOUT = 100;

Vue元件--父元件發起ajax請求實現json資料(jquery方式)

HTML和Vue: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>父元件發起ajax請求實現json資料(jqueryAjax)</title&g

Vue元件--父元件發起ajax請求實現json資料(jqueryAjax-axios)

HTMl和Vue: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>父元件發起ajax請求實現json資料(jqueryAjax-axios)</t

Vue專案載入本地的json資料模擬請求後臺資料

1. 安裝express和axios npm i express --save &  npm i axios --save  網速不好的,可以安裝淘寶映象,使用cnpm 2. 在main.js中引入axios,並掛載到全域性 import axios from ‘axios