How to Iterate through each JSON key-value pair in Postman

I’m writing tests in POSTMAN against a POST API request by sending JSON body data of the following format: “data”: { “name”: “Amber Joseph”, “dob”: “1988-10-13”, “addressLine1”: “Ap #770-9459 Quis Av.”, “state”: “WA”, “suburb”: “Beverley”, “yesNo”: false, “balance”: 423.00, “club”: [ “Dance”, “Sports” ], “activities” : null “libraryCard”: { “uid”: “2d07d77c-8756-43d4-912f-238a2ff567fe” } } I get…

How to get a particular string from curl json output

I’m performing the following curl command against Jira api: issue_key=$(curl -g -D- -X GET -H “Content-Type: application/json” “http://real_path/rest/api/2/search?jql=cf[10804]~${real_value}&maxResults=2&fields=id,key” -u “test_user:test_pass”) I’m doing that in order to receive the Jira issue key which matches the specific value of a custom field(cf[10804]). The response to my curl request is as follows: HTTP/1.1 200 X-AREQUESTID: 674x690471x1 X-XSS-Protection: 1;…

springboot unable to convert ZonedDatetime to json response in more readable way

I am trying to convert an object containing ZonedDatetime to json response. The json response I get is as below { “DateTime”: { “offset”: { “totalSeconds”: 19800, “id”: “+05:30”, “rules”: { “transitionRules”: [], “transitions”: [], “fixedOffset”: true } }, “zone”: { “id”: “Asia/Calcutta”, “rules”: { “transitionRules”: [], “transitions”: [ { “offsetBefore”: { “totalSeconds”: 21208, “id”:…

Fill a mat-table with json from GET response

I am sending a query to the back-end and I want to fill a table with the information from the response. I am connecting services trough HTTP request GET. app.component.ts: results: any; displayedColumns: string[] = [‘bank’, ‘exchange’, ‘fee’, ‘cost’]; isLoading = true; submitForm(amountMoney: string, amountTransactions: string) { this.service.getCalculations(this.selectedCountryFrom, this.selectedCountryTo, this.selectedCurrencyFrom, this.selectedCurrencyTo, amountMoney, amountTransactions).subscribe((response) => {…