Jquery data retrival returns null with json data
Posted
by
user545520
on Stack Overflow
See other posts from Stack Overflow
or by user545520
Published on 2010-12-26T01:31:52Z
Indexed on
2010/12/26
1:54 UTC
Read the original article
Hit count: 536
jQuery
Hello Everyone,
I have below sample json file:
{"jsonData":{"REC":[{"TEST":"T","TEST1":"T1","TEST2":"T2"},{"R":"R","R1":"R1","R3":"R3"}],
"DATA":{"FIRST":0,"SEC":1}}}.
I want to retrieve data from json file,i am try like below,but it is giving null.
from result object:i am retrieving data like below:
to retrive the value T: this.jsonData.REC.TEST
To retrieve the value R1: this.jsonData.DATA.FIRST
Please correct me if i am doing any wrong.
Thanks in Advance.
© Stack Overflow or respective owner