Skip to main content

All Questions

Tagged with
0 votes
2 answers
38 views

How to validate JSON response using JSON test data file?

Having JSON response with nested elements. I would like to validate it against JSON test data using Postman and test functions. For the moment I can easily reach it by hardcoding: const jsonData = pm....
Thomas's user avatar
  • 1
-2 votes
2 answers
94 views

How to flatten a list of objects in python

I have a list of objects : [ { "person": "abc", "city": "united states", "facebooklink": "link", "address": &...
Tanu's user avatar
  • 1,462
0 votes
1 answer
79 views

How to auto populate the address in json

This is the json object I have [ { "person": "abc", "city": "united states", "facebooklink": "link", "united states&...
Tanu's user avatar
  • 1,462
0 votes
0 answers
62 views

Iterate Json object using Scala2

Newbie Scala user's here! I was trying to extract all elements in a JSON array one by one, so I was iterating this object. Since Scala doesn't have built-in JSON support, I used a third-party JSON ...
Memphis Meng's user avatar
  • 1,581
1 vote
1 answer
62 views

How can I loop through a json object via `jq`?

I have a json object which is not an array. { "affected-apps": { "result": "success", "outputs": { "affected_apps_array": [ &...
Joey Yi Zhao's user avatar
  • 41.1k
0 votes
1 answer
95 views

Iterate a JSON map and get Key Value Pairs in Ballerina

I have the following JSON: json envs = { "user": "user", "pass": "password", "key": "key1" }; Is there a way to iterate ...
ThisaruG's user avatar
  • 3,372
0 votes
1 answer
72 views

How do I do a nested iteration

I'm trying to work on an extention for another software that sends a request to an application made in Go. In the Go program (which I'll now refer to as "the program"), one purpose is to ...
Mia Gobble's user avatar
0 votes
1 answer
87 views

Passing a string as a property to use the map function

I have something like this { "title": "JSON", "content": [ { "item": "23", "url":"ug.coml" ...
Jacklyn N's user avatar
1 vote
1 answer
200 views

How to iterate through nested map of JSON in groovy

I have below JSON output from AWS DynamoDB and I want to iterate through it and populate the table in Jenkins Parameters through groovy script. Is it possible to do? JSON: [ { "test&...
Alfred Hitchkock's user avatar
-1 votes
3 answers
60 views

Create an object from a json value

I have a json file (estate.json) that looks like this: { "type": "FeatureCollection", "features": [ { "type": "Feature", "id&...
MathiasF78's user avatar
0 votes
1 answer
635 views

Iterate through array in Cypress with assertions JavaScript

I have an array from API call response that looks like this: [ { "IsDatalakeEnabled": true, "RecoveryHr": { "IsRecoveryHREnabled": false, ...
Eugene's user avatar
  • 1
1 vote
0 answers
26 views

What ways are there to do an individual hover on elements that were iterated in React?

I'm rendering elements with the map function in react, the problem is that when hovering, the effect is applied to all the elements and what I'm looking for is an individual effect for each card. This ...
Hayytz's user avatar
  • 11
-1 votes
1 answer
40 views

Iterating Woes on JSON Object in Javascript

Context: I created Flask API to server up jokes, and was creating relatively static frontend for it. I wanted a joke from there API to be on the front end and callable but a button click using a ...
Terry Brooks Jr's user avatar
-2 votes
2 answers
3k views

How do I iterate over a JsonObject with foreach in C#

I'm trying to foreach through a JsonObject, but unfortunately it gives me an error on the "in productSizes" foreach statement cannot operate on variables of type 'JsonNode' because '...
Ednik's user avatar
  • 17
-2 votes
1 answer
68 views

How to iterate through deserialized JSON to count specific values

Using Python, got the JSON below from an API response. All I'm looking to do at this stage is count up the totals of each status code. I've tried to implement the counting of ToDos from this Real ...
foggy's user avatar
  • 3

15 30 50 per page
1
2 3 4 5
16