R
R
Rei252020-09-30 02:33:39
JavaScript
Rei25, 2020-09-30 02:33:39

How to pull value from array (postman)?

There is a request, in response to which the code below comes
. Can you please tell me how to get the settings_code value (from the first object) and pass it to the environment variable? (for Postman)

[
    {
        "model_type": "prom",
        "settings_code": "rCj8xHfQEvvi6tQCVqYMzOVLpOTO5NS6",
        "created_at": "2020-09-29 11:00:25",
        "life_time_days": "30"
    },
    {
        "model_type": "prom",
        "settings_code": "BI626t5O3CIxoJ7pvcO0AyZnklGdxRXY",
        "created_at": "2020-09-29 14:06:40",
        "life_time_days": "30"
    },
    {
        "model_type": "prom",
        "settings_code": "r794PixduJ0zhSKfieZa3y8dV3InaxjH",
        "created_at": "2020-09-29 14:24:31",
        "life_time_days": "30"
    },
    {
        "model_type": "prom",
        "settings_code": "LfXljdYHOPMHjmOfhQPhi61UoGr45wdM",
        "created_at": "2020-09-29 14:25:39",
        "life_time_days": "30"
    },
    {
        "model_type": "prom",
        "settings_code": "5nBvGhY5ROroS9a0TCGYjo3HlLmPyaE6",
        "created_at": "2020-09-29 14:44:38",
        "life_time_days": "30"
    },
    {
        "model_type": "prom",
        "settings_code": "osb3rM1wETZEmRXmXULraal9mhfdhgbU",
        "created_at": "2020-09-29 17:59:51",
        "life_time_days": "30"
    }
]

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question