how to parse json in vb.net

edited January 2017

i have received output as follows
{"balance":{"balance":"9964.58","currency":"USD","loginid":"VRTC1315386"},"echo_req":{"balance":"1"},"msg_type":"balance"} in textbox
now,i have to parse only the balance amount and display it in another textbox.
i have used the following code,but i am unable to parse the balance amount as follows
Dim exampleJson As String = TextBox1.Text
Dim tempPost = New With {Key .balance = ""}
Dim post = JsonConvert.DeserializeAnonymousType(exampleJson, tempPost)
Dim com As String = post.balance
TextBox3.Text = com

please give me an solution or example to parse the balance amount in vb.net

Sign In or Register to comment.