rajshk04
7 years agoNew Contributor
split json
success_Response (java.lang.Object) | {"TTLRN":{"address":"tel:+9999999999","validity":"Valued","carrierid":"0000","carriername":"MYDORA","numbertype":"L","country":"Uganda","portingstatus":"false","mcc":"641","mnc":"11","deactivationdetail":{"carrierid":"","carriername":"","deactivationdate":""},"deactivationdate":"","requestid":"nistesting9","trackingid":"101580039301503395442144"}} |
def success_Response = context.expand( '${TTLRN Request#Response#$}' )
def stringOutputSplitResponse=[]
stringOutputSplitResponse[] = success_Response.split(/"/)
def string = stringOutputSplitResponse[1]
log.info string
am unable to print TTLRN, expecting string to have assigned the value TTLRN