تقييم الموضوع :
  • 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
الرد }}}}
تم الشكر بواسطة:


المواضيع المحتمل أن تكون متشابهة .
الموضوع : الكاتب الردود : المشاهدات : آخر رد
  [VB.NET] مشكلة في حفظ بيانات من الجدولين dark1459 8 115 أمس, 10:35 PM
آخر رد: dark1459
  مشكلة في اجبار المستخدم ان يحفظ صورة في قاعدة بيانات shado1796 96 6,251 أمس, 04:03 AM
آخر رد: khodor1985
  [VB.NET] مشكلة المسارات Fantastico 1 49 24-02-17, 12:40 PM
آخر رد: Master Hacker
  مشكلة ف الحفظ والتعديل بعد تحويل المشروع لملف تنفيذي apo yousef 3 89 23-02-17, 12:28 PM
آخر رد: ssayed111
  مشكلة في عرض النص بالعربي في #Region فقط ali.alfoly 1 76 22-02-17, 02:50 AM
آخر رد: مساعدة
  ار جو المساعدة ما هي مشكلة كود التعديل والحذف boofa2015 2 58 21-02-17, 10:58 AM
آخر رد: boofa2015
  [VB.NET] مشكلة في كيفية اعادة الاتصال في TcpClient YazanOtoum 1 60 20-02-17, 01:03 PM
آخر رد: YazanOtoum
  [VB.NET] كيفية حل مشكلة Global.[String] فى ملف Settings.Designer.vb الماجيك مسعد 2 62 20-02-17, 03:08 AM
آخر رد: الماجيك مسعد
  [VB.NET] مشكلة في حدف صورة من مسار بمجلد بالكمبيوتر ناصر شير 6 123 18-02-17, 02:37 PM
آخر رد: ناصر شير
  [سؤال] حل مشكلة برنامج لتغير التاريخ عبدالرحمن المكاوي 6 145 17-02-17, 11:19 PM
آخر رد: EnormousSoft

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


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