HOW TO CREATE ARRAY OBJECTS IN JAVASCRIPT WITH JSON?

Tanuj Kumar

Total Post:134

Points:940
Posted by  Tanuj Kumar
 2230  View(s)
Ratings:
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!!
  1. Arun Singh

    Post:68

    Points:476
    Re: How to create array objects in JavaScript with JSON?

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!