I did not find a specific answer that addresses the following question.
I have the following JSON response received through an AJAX POST request.
{ "result": { "101010":["PRAVAT","SGSGSG","UKEMP5","UKENTD","WAUK01","MK87UK"], "202020":["CORA1E","PSASAS","EDCRJS","USHC01","USDR06"], ............................ ........................ "304050":["ERCDE2","DELT01","DECGKG","DEHC03","IS02","DEPI01"] }, "status":"SUCCESS" }
I want to display data above data using a loop in javascript. I tried for ( var i = 0; i < response.result.length; i++) { but I cannot do this.
Please help me parse and display my data in the above JSON format using javascript.
source share