Jenkins itself is not able to parse JSON response body. However, we can use Python with the built-in json
library to parse JSON object within command-line.
For example, if we request the URL like http://md5.jsontest.com/?text=example_text , this will return the values as
|
|
With the help of Python json library, we can do something like
|
|
This will yield outputs like:
|
|
And we can integrate this script with Jenkins to do things like