تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
[سؤال] مشكلة من json
#1
سلام  عليكم  

عندي   مشكلة من  json 

كود :
Imports Newtonsoft.Json
Imports Newtonsoft.Json.Linq
Imports System.Net


Public Class Form1
   Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
       Dim webClient As New System.Net.WebClient
       Dim result As String = webClient.DownloadString("http://example.com/api")
   End Sub
End Class



عندي  هي  كود يقراء  api  و يعطيني   json  

اريد  اقراء هي json   واحد واحد  من ليست بوكس  او textbox  

كود :
[{"id":"23","name":"AL SARD FIBER","status":"1","ping":"73","loss":"0","time":"2016-10-22 02:55:57","logo":"sard.png","lastup":"3 minutes ago","lastdown":"2 weeks ago"},{"id":"11","name":"AL-Jazeera","status":"1","ping":"85","loss":"0","time":"2016-10-22 02:55:32","logo":"jazeera.jpg","lastup":"3 minutes ago","lastdown":"2 hours ago"},{"id":"16","name":"ASAS","status":"1","ping":"130","loss":"0","time":"2016-10-22 02:55:48","logo":"asas.jpg","lastup":"3 minutes ago","lastdown":"6 days ago"},{"id":"25","name":"BroadBand","status":"1","ping":"76","loss":"0","time":"2016-10-22 02:56:04","logo":"broadband.png","lastup":"3 minutes ago","lastdown":"2 hours ago"},{"id":"17","name":"CITY TELECOM","status":"1","ping":"231","loss":"0","time":"2016-10-22 02:55:51","logo":"ctm.png","lastup":"3 minutes ago","lastdown":"2 days ago"},{"id":"37","name":"CNC Telecom","status":"1","ping":"75","loss":"0","time":"2016-10-22 02:56:28","logo":"cnc.png","lastup":"2 minutes ago","lastdown":"2 hours ago"},{"id":"39","name":"Dish Telecom","status":"1","ping":"70","loss":"0","time":"2016-10-22 02:56:34","logo":"dishtele.png","lastup":"2 minutes ago","lastdown":"2 hours ago"},{"id":"7","name":"Earthlink","status":"1","ping":"70","loss":"0","time":"2016-10-22 02:55:17","logo":"earthlink.png","lastup":"3 minutes ago","lastdown":"2 hours ago"},{"id":"28","name":"Elsuhd Net","status":"1","ping":"101","loss":"0","time":"2016-10-22 02:56:13","logo":"elsuhd.png","lastup":"3 minutes ago","lastdown":"3 days ago"},{"id":"9","name":"FastIraq","status":"0","ping":"0","loss":"100","time":"2016-10-22 02:55:26","logo":"fastiraq.png","lastup":"5 days ago","lastdown":"3 minutes ago"},{"id":"42","name":"Future Technology Co. Oxygen ISP","status":"1","ping":"108","loss":"0","time":"2016-10-22 02:56:41","logo":"oxygen.png","lastup":"2 minutes ago","lastdown":"2 hours ago"},{"id":"15","name":"FutureWaves","status":"1","ping":"76","loss":"0","time":"2016-10-22 02:55:45","logo":"futurewaves.jpg","lastup":"3 minutes ago","lastdown":"2 days ago"},{"id":"43","name":"GigaNet Telecom Ltd","status":"1","ping":"73","loss":"0","time":"2016-10-22 02:56:44","logo":"giganet.png","lastup":"2 minutes ago","lastdown":"2 weeks ago"},{"id":"13","name":"HALASAT","status":"1","ping":"74","loss":"0","time":"2016-10-22 02:55:39","logo":"halasat.jpg","lastup":"3 minutes ago","lastdown":"2 hours ago"},{"id":"10","name":"Hayat","status":"1","ping":"137","loss":"0","time":"2016-10-22 02:55:29","logo":"hayat.png","lastup":"3 minutes ago","lastdown":"2 days ago"},{"id":"26","name":"HighSpeed-Baghdad","status":"1","ping":"85","loss":"0","time":"2016-10-22 02:56:07","logo":"highspeed.jpg","lastup":"3 minutes ago","lastdown":"6 days ago"},{"id":"27","name":"HighSpeed-Basrah","status":"1","ping":"85","loss":"0","time":"2016-10-22 02:56:10","logo":"highspeed.jpg","lastup":"3 minutes ago","lastdown":"5 days ago"},{"id":"14","name":"HRINS","status":"1","ping":"76","loss":"0","time":"2016-10-22 02:55:42","logo":"hrins.png","lastup":"3 minutes ago","lastdown":"2 hours ago"},{"id":"46","name":"Hulum Almustakbal","status":"1","ping":"74","loss":"0","time":"2016-10-22 02:56:53","logo":"hulum.png","lastup":"2 minutes ago","lastdown":"2 days ago"},{"id":"47","name":"iNet Telecom","status":"1","ping":"72","loss":"0","time":"2016-10-22 02:56:56","logo":"inet.png","lastup":"2 minutes ago","lastdown":"1 week ago"},{"id":"1","name":"IQ-BAGHDAD","status":"1","ping":"77","loss":"0","time":"2016-10-22 02:55:05","logo":"iq.jpg","lastup":"4 minutes ago","lastdown":"2 hours ago"},{"id":"45","name":"IQ-SULY","status":"1","ping":"71","loss":"0","time":"2016-10-22 02:56:50","logo":"iq.jpg","lastup":"2 minutes ago","lastdown":"2 hours ago"},{"id":"34","name":"IZONE TELECOM","status":"1","ping":"70","loss":"0","time":"2016-10-22 02:56:25","logo":"izone.png","lastup":"2 minutes ago","lastdown":"2 hours ago"},{"id":"8","name":"Masarat","status":"1","ping":"144","loss":"0","time":"2016-10-22 02:55:20","logo":"masarat.png","lastup":"3 minutes ago","lastdown":"2 days ago"},{"id":"24","name":"NassIraq","status":"1","ping":"74","loss":"0","time":"2016-10-22 02:56:00","logo":"nass.png","lastup":"3 minutes ago","lastdown":"2 hours ago"},{"id":"6","name":"Newroz","status":"1","ping":"60","loss":"0","time":"2016-10-22 02:55:14","logo":"newroz.jpg","lastup":"3 minutes ago","lastdown":"2 weeks ago"},{"id":"44","name":"Online Company-Suly","status":"1","ping":"73","loss":"0","time":"2016-10-22 02:56:47","logo":"online.png","lastup":"2 minutes ago","lastdown":"2 hours ago"},{"id":"12","name":"PURE LINE","status":"1","ping":"69","loss":"0","time":"2016-10-22 02:55:36","logo":"plciq.png","lastup":"3 minutes ago","lastdown":"9 hours ago"},{"id":"38","name":"Rc-Network","status":"1","ping":"85","loss":"0","time":"2016-10-22 02:56:31","logo":"rcnetwork.png","lastup":"2 minutes ago","lastdown":"2 hours ago"},{"id":"33","name":"Rey-telecom","status":"1","ping":"64","loss":"0","time":"2016-10-22 02:56:22","logo":"ray.jpg","lastup":"2 minutes ago","lastdown":"3 weeks ago"},{"id":"3","name":"ScopeSky-Baghdad","status":"1","ping":"143","loss":"0","time":"2016-10-22 02:55:08","logo":"scopesky.png","lastup":"4 minutes ago","lastdown":"4 days ago"},{"id":"4","name":"ScopeSky-BASRAH","status":"1","ping":"135","loss":"0","time":"2016-10-22 02:55:11","logo":"scopesky.png","lastup":"4 minutes ago","lastdown":"2 days ago"},{"id":"5","name":"ScopeSky-Diyala","status":"0","ping":"0","loss":"100","time":"2016-10-22 02:55:11","logo":"scopesky.png","lastup":"1 week ago","lastdown":"4 minutes ago"},{"id":"29","name":"Speedway-Erbil","status":"1","ping":"57","loss":"0","time":"2016-10-22 02:56:16","logo":"speedway.jpg","lastup":"2 minutes ago","lastdown":"2 weeks ago"},{"id":"31","name":"Speedway-Suly","status":"1","ping":"64","loss":"0","time":"2016-10-22 02:56:19","logo":"speedway.jpg","lastup":"2 minutes ago","lastdown":"1 week ago"},{"id":"41","name":"Yottatech Telecom","status":"1","ping":"76","loss":"0","time":"2016-10-22 02:56:37","logo":"yotta.png","lastup":"2 minutes ago","lastdown":"2 hours ago"},{"id":"18","name":"Zain Iraq","status":"1","ping":"108","loss":"0","time":"2016-10-22 02:55:54","logo":"zain.jpg","lastup":"3 minutes ago","lastdown":"9 hours ago"}]
الرد }}}}
تم الشكر بواسطة:
#2
اخي اريد عن طريق id او اسم

if textbox1.text = 23 <=== id then

name.text = name
name1.text = status
name.text = ping

end if

اريد يعطيني معلومات عن طريق id
الي label
الرد }}}}
تم الشكر بواسطة:


المواضيع المحتمل أن تكون متشابهة .
الموضوع : الكاتب الردود : المشاهدات : آخر رد
  حل مشكلة الكود الاتي - سهل- CLARO 3 78 02-12-16, 04:06 PM
آخر رد: ali.alfoly
  كيف يتم حل مشكلة ظهور رسالة عند الضغط علي هيد داتا جريد فيو السيد الجوهري 4 56 30-11-16, 10:08 PM
آخر رد: السيد الجوهري
  [VB.NET] مشكلة عند عمل تحديث للبيانات Asmaa adel 3 72 27-11-16, 03:56 PM
آخر رد: Adrees
Rainbow [VB.NET] مشكلة طابعة الباركود محمد اسماعيل 3 268 27-11-16, 10:30 AM
آخر رد: adel27
  [SQL] مشكلة عند الاتصال بالسيكوال سيرفر تظهر الرسالة التالية Asmaa adel 8 186 21-11-16, 11:58 PM
آخر رد: Asmaa adel
  [سؤال] مشكلة في إعادة تنفيذ البرنامج wael khlak 1 52 21-11-16, 11:48 PM
آخر رد: السرور
  [VB.NET] مشكلة في كود البحث khalid475 14 221 11-11-16, 07:52 PM
آخر رد: khalid475
Question [سؤال] مشكلة محيرتني هل من مساعدة shwehdi4pc 14 2,114 10-11-16, 03:55 PM
آخر رد: أبوبكر سويدان
  [VB.NET] مشكلة في Timer 3asfa~mdmra 1 80 07-11-16, 02:09 PM
آخر رد: hassan
  [سؤال] مشكلة في حفظ البيانات باستخدام datagridview abdalla89 6 359 05-11-16, 02:47 AM
آخر رد: نايف 2006

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم