In science array when declaring the second student name, to create the object '{' is needed. It's missing there. So it will not produce appropriate result...
It should be like....
"Science" : [
{"Name" : "Shaili", // First Element
"Marks" : 56,
"age" : 27 },
{ "Name" : "Santosh", // Second Element
"Marks" : 78,
"age" : 41 }
]
some error in the json array exampleRamanujam April 10, 2011 at 10:08 PM
in above example in 21 line your are missing { so please rectify this mistake ,other it will javascript error
ErrorKumar April 18, 2011 at 3:27 PM
any one found that error?
code not workingvibhav May 29, 2011 at 12:27 AM
This code does not work , please check it
wrong codevibhav May 29, 2011 at 12:31 AM
one "{" is missing before science santosh.
error.shock July 8, 2011 at 6:08 PM
"Name" : "Santosh", // Second Element the opening curly "{" bracket is missing in the bbove line of code
erroravinash January 21, 2012 at 2:04 PM
{"Name" : "Sandeep", // Second element "Marks" : 65, "age" : 21 } ], "Science" : [ {"Name" : "Shaili", // First Element "Marks" : 56, "age" : 27 }, "Name" : "Santosh", // Second Element//error:in this line before "Name" there is "{" bracket missing "Marks" : 78, "age" : 41 } ] }
'{' missing in creating the objectKarthick moorthy March 29, 2012 at 10:25 AM
In science array when declaring the second student name, to create the object '{' is needed. It's missing there. So it will not produce appropriate result... It should be like.... "Science" : [ {"Name" : "Shaili", // First Element "Marks" : 56, "age" : 27 }, { "Name" : "Santosh", // Second Element "Marks" : 78, "age" : 41 } ]
Error in codeRajat Sharma May 8, 2012 at 9:37 PM
Please replace "Name" : "Santosh", // Second Element with {"Name" : "Santosh", // Second Element "{" is missing.
Thankyou!nishant pandey June 22, 2012 at 7:33 PM
I really appreciate your effort. Its quiet easy to understand.
Review abt above codeRajesh June 26, 2012 at 1:50 AM
Hi, Nice code,easily understandable one.... Thank u for posting that great code......
CorrectionRamnath September 6, 2012 at 3:33 PM
It would be apt if the objectName "student" is replaced with "Exam" and "name" with "StudentName".
Post your Comment