Trying to parse this JSON response and get the id Value
{
    "responseStatus": "SUCCESS",
    "size": 1,
    "start": 0,
    "limit": 200,
    "documents": [
        {
            "document": {
                "id": 26,
Using this script to parse the response and post the value as an environment variable, for some reason is not retrieving the expected response.
var jsonData = JSON.parse(responseBody);
postman.setEnvironmentVariable("id", jsonData.id);
Although it created the id variable in the environment, the value is empty.
 
    