Saturday, 17 June 2023

Read (Consume) Rest API using VB.NET Windows Programming

 This post will help you to read a single record from API in JSON format using VB.Net Windows form Application.

Data formate 

{"roll":101,"name":"ram","city":"vns"}
Package Install
NuGet\Install-Package Newtonsoft.Json -Version 13.0.3
Code
Imports System.Net
Imports Newtonsoft.Json.Linq
  Dim json As String = New System.Net.WebClient().DownloadString("your api url")
  Dim parsejson As JObject = JObject.Parse(json)
  Label1.Text = "Roll=" & parsejson.SelectToken("roll").ToString  & ", Name=" &        parsejson.SelectToken("name").ToString  & ", City=" &   parsejson.SelectToken("city").ToString        

   Next Example

VB.Net API tutorial

 




Back to Home

Friday, 16 June 2023

Internet of Things and its applications (M4-R5) | NIELIT O Level

 



Get Next Paper

Thursday, 15 June 2023

Solved paper Programming and Problem Solving Through Python M3-R5

 Q1 : Each question below gives a multiple choice of answers. Choose the most appropriate one and enter in the "OMR" answer sheet supplied with the question paper, following instructions therein.

1.1 : Which of these is not a core data type ?
(A) Lists

(B) Dictionary
(C) Tuples
(D) Class