Home > DeveloperSection > Forums > How to create array objects in JavaScript with JSON?
Tanuj Kumar

Total Post:134

Points:940
Posted on    May-12-2012 7:42 AM

 JavaScript JavaScript 
Ratings:


 1 Reply(s)
 1808  View(s)
Rate this:
Hi Guys,
Can anyone help me, Actually I want to create Array objects in JavaScript with JSON but I don't have idea to do it.
Please reply as soon as possible.

Thanks in advance!!


Arun Singh

Total Post:68

Points:476
Posted on    May-14-2012 3:41 AM

Hi Tanuj Kumar,
You can create array objects in javascript with JSON using following line of code.
var StudentDetails = {

                   //Array to collect record of Student.

                   // Information of MCA students

                        "MCAStudent": [{

                         "StudentName": "Kumar Vishu",

                         "Roll_No":100,

                         "Stream": "Computer Science",

                         "Course": "MCA"

                    }]

For more details on this topic you may check out the following link...

http://www.mindstick.com/Articles/c2014256-92e0-4fe9-b76f-23afe7ce60f3/?Creating%20Array%20Objects%20in%20JavaScript%20with%20JSON


I hope it might be resolve your problem. Please marked as answer if this solution will be beneficial for you.

Don't want to miss updates? Please click the below button!

Follow MindStick