Quantcast
Channel: All LoadRunner Practitioners Forum posts
Viewing all articles
Browse latest Browse all 12134

Extract values from json

$
0
0

we need to extarct all the PROGRAMID  from below json string  i tried using below code but failed to fetch need help on same

web_reg_save_param_ex(
        "ParamName=CorrelationParameter_1",
        "LB=assessmentData=[{\"Key\":\"Response\",\"Value\":[{\"AssessmentTypeID\":",
        "RB=,",
        SEARCH_FILTERS,
        "Scope=Body",
        "RequestUrl=*/MultiStudentSearchByCustom*",
        LAST);

 

this is sample json string

 

var programData=[{"Key":"Response","Value":[{"Name":"Demo Procalc program","ProgramID":199433},{"Name":"ELSEVIER COLLEGE DEMO","ProgramID":196813},{"Name":"ELSEVIER COLLEGE-APRN","ProgramID":199511},{"Name":"ELSEVIER COLLEGE-MASSAGE THERAPY","ProgramID":199424},{"Name":"ELSEVIER COLLEGE-MEDICAL ASSISTING","ProgramID":199340},{"Name":"ELSEVIER COLLEGE-PN","ProgramID":198172},{"Name":"ELSEVIER COLLEGE-RN","ProgramID":198171},{"Name":"ELSEVIER MOCK UNIVERSITY-RN","ProgramID":199527},{"Name":"elsevier test uatt","ProgramID":199442},{"Name":"Elsevier Uniiversity Test 10","ProgramID":199444},{"Name":"Elsevier Uniiversity Test 11","ProgramID":199445},{"Name":"Elsevier Uniiversity Test 12","ProgramID":199446},{"Name":"ELSEVIER UNIVERSITY","ProgramID":195903},{"Name":"Elsevier University - UAT - ProCalc","ProgramID":199441},{"Name":"elsevier university test 8","ProgramID":199443},{"Name":"ELSEVIER UNIVERSITY-CAT","ProgramID":198263},{"Name":"ELSEVIER UNIVERSITY-Elsevier","ProgramID":196296},{"Name":"ELSEVIER UNIVERSITY-EXAM REVIEW","ProgramID":198968},{"Name":"ELSEVIER UNIVERSITY-HOSPITAL","ProgramID":199136},{"Name":"ELSEVIER UNIVERSITY-Houston-ADN","ProgramID":197418},{"Name":"ELSEVIER UNIVERSITY-Houston-BSN","ProgramID":195925},{"Name":"ELSEVIER UNIVERSITY-HP","ProgramID":198274},{"Name":"Elsevier University-MBS","ProgramID":199428},{"Name":"ELSEVIER UNIVERSITY-Paramedic","ProgramID":198915},{"Name":"ELSEVIER UNIVERSITY-PILOT","ProgramID":199266},{"Name":"HESI QC","ProgramID":196789},{"Name":"P8han","ProgramID":199439},{"Name":"Prog8","ProgramID":199438},{"Name":"Prog8jan","ProgramID":199436},{"Name":"Program7jan","ProgramID":199434},{"Name":"Program8","ProgramID":199437},{"Name":"Program8j","ProgramID":199440},{"Name":"Program8jan","ProgramID":199435},{"Name":"Test Procalc Gradebook Issue","ProgramID":199448},{"Name":"UAT PROGRAM-EMT","ProgramID":199538}]}]


Viewing all articles
Browse latest Browse all 12134

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>