473,388 Members | 1,496 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Deserialize JSON Array in vb.net

137 100+
i'm new to json. i have json array and i want to deserialize it.
my string is :
Expand|Select|Wrap|Line Numbers
  1. [
  2.     {
  3.     "Id": "1234",
  4.     "AlbumName": "Album Name",
  5.     "Songs": [
  6.         {
  7.         "AlbumId": "1234",
  8.         "SongName": "Song 1",
  9.         "SongLength": "4:11"
  10.         },
  11.         {
  12.         "AlbumId": "1234",
  13.         "SongName": "Song2",
  14.         "SongLength": "3:10"
  15.         }
  16.     ]
  17.     }
  18.     ]
  19.  
  20. i have also imported
  21.  
  22. Imports Newtonsoft.Json
  23. Imports Newtonsoft.Json.Linq
  24.  
i could display value from the json string but i couldn't get the array for Songs
Dec 15 '15 #1
0 1684

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Messer | last post by:
hello, is there a way to deserialize the array: a:2:{i:0;s:8:"element0";i:1;s:8:"element1";} in vb. net? greets, messer
2
by: Joe | last post by:
Hi I have a Generics List in a PropertyGrid I am able to Serialize it to XML but when I try to deserialize back to the class of the PropertyGrid The Constructor doesn't seem to fire to reload...
4
by: googleAcct | last post by:
see the following example. When I simplified the test case, I seem to be getting an error I cant explain, though the read succeeds and I go on to iterate on the JSON result. Using Firebug or other...
5
by: Tom Cole | last post by:
Let's say I have the following JSON string returned from a server-side process: { values: } I then create a JSON object from it using eval() (tell me if this is not what should be done). ...
7
by: Andrew | last post by:
Hi, I am using DataContractJsonSerializer to deserialize JSON string in C# objects but I am having a problem. Suppose I have a class: class Item { public ItemId Id { get; set; }
2
by: xdevel1999 | last post by:
Hi, I have the following problem: when I try to access to the array in Big object I have 'Big is not defined' but when I try to access to the function in Low object I have no error!!!! WHY?? ...
2
pradeepjain
by: pradeepjain | last post by:
i have a page post2.php which prints the json array like { page: 1, total: 239, rows: }, {id:'238',cell:}, {id:'237',cell:}, {id:'236',cell:}, {id:'235',cell:},
0
by: BaseballGraphs | last post by:
Hello, I am trying to use Ajax in order to improve the speed of my website. I am trying to pull data from a dynamic page and insert the data onto the current page. There are 3 three things I am...
1
by: BaseballGraphs | last post by:
Hello, I am trying to iterate over a JSON array using JQuery's .getJSON method and am requiring assistance building the javascript function to iterate and return all values in my array. My JSON...
6
by: ruby88 | last post by:
success : function(responseJson) { var tbody = $("#Account"); alert("JSonResponse: " + responseJson); $ .each( responseJson, function(index,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.