Jquery data retrival returns null with json data
- by user545520
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.