I have a requirement to make a HTTP call using JSR223 sampler using Groovy as language.
Upon making an api call i have received a response and is seen in log viewer.
Now i want to parse and save the returned value in logs to a vaiable for successive usage.
Below is teh sample returned response
2018-05-31 15:38:09,291 INFO o.a.j.p.j.s.JSR223Sampler: {"access_token":"acdaraffafasvtokenhgsvjdk","token_type":"sample","expires_in":80,"scope":"map.c map.r","ext_attr":{"enhancer":"aqa","zdn":"map"},"jti":"jhfeayishdgvs77sdzxcfnkjdx"}
here i want to parse the "access_token" value 'acdaraffafasvtokenhgsvjdk' to a variable for successive usage.