Skip to main content

All Questions

Tagged with
0 votes
0 answers
25 views

Making post request to a specific object within an array in db.json file

I am making a signup form in a react app. The form has five inputs; name, username, email, password, and favTeam. I want this info, when submitted to be sent to my backend (right now just a db.json ...
John C's user avatar
  • 1
2 votes
3 answers
254 views

How do I remove object if all elements are null in the json using javascript

Could you please tell me How to remove the object with all null values in json using javascript. I need to remove the nested objects with null/empty keys too. { "glossary": { &...
mnvbrtn's user avatar
  • 568
1 vote
0 answers
29 views

How can I recreate a request in python since I have only it's log?

I'm writing a Python script to load a collection of logs from API requests. I need to reissue these requests in debug mode to fetch additional information that is not available in the original logs ...
A. Curvina's user avatar
0 votes
1 answer
18 views

Do I still need to create another use state to render each object in react js?

const [data, setData] = useState([]); const [input, setInput] = useState(""); const getWeather = async () => { const data = await fetch( `http://api.weatherapi.com/v1/...
Ronell Villamil's user avatar
0 votes
2 answers
415 views

JQ: How to select only some elements in multi-level nested JSON

This is a bit long, but I am at a loss how to glue together multiple jq queries to filter out nested objects in a multi-level structure. I am starting with JSON that looks like this. { "image&...
John's user avatar
  • 3
1 vote
1 answer
178 views

How can I JSON stringify and then parse an object with functions? (JavaScript)

I have an object with both attributes and functions, and I want to be able to stringify them into JSON, then parse them back out again for a save-load system. Keep in mind, the data has circular ...
Richard Yang's user avatar
0 votes
2 answers
64 views

Trying to replicate JSON.stringify [duplicate]

Okay so I am trying to replicate JSON.stringify. Currently I am getting this error. Unfortunately this error is not very helpful because the message is cut short before it actually gets to what the ...
Codingenthusiast's user avatar
0 votes
1 answer
45 views

find the JSONObject in JSONArray based on key-value of JSONObject

I have a JSONArray with JSONObjects , i want the find a JSONObject based on condition and update it . Consider my json as below ManagerArr = [ { name : "Ram", employees: ["Shyam&...
Sahithi Y's user avatar
  • 248
0 votes
1 answer
32 views

React array map is duplicating array inside an array of objects

Creating a movie application and showtimes are embedded in an array of objects inside an array of movie objects. The times are duplicating and rendering out the movie 3 times if there are 3 showtimes ...
Marc Brolly's user avatar
-1 votes
1 answer
117 views

How to sort an object dynamically

I have the following JSON object Capture of the console.log This is created by the following code: $( document ).ready( function(){ $.ajax({ type: 'GET', url: 'DonneesGraph.php?...
Tetsuochat's user avatar
0 votes
2 answers
56 views

Find multiple keys in a object Javascript

I have an object that can have multiple named "url" keys, that they are on different levels of depth, they can change. I need that every key named url found, replace its value for a new one. ...
Jelly's user avatar
  • 1
1 vote
1 answer
38 views

Moving a value to another object in JSON React

I have a JSON file with days of the week and the opening and closing times of the store in seconds after midnight. { "friday": [{ "type": "open", "value": ...
Giovanna's user avatar
1 vote
1 answer
46 views

ConvertTo-Json ignores array in the inner object

I have an object I need to extend. The issue is after converting to JSON the inner array object is always empty. I don't understand where's my fail :( $settings = @{} # create the nested object $...
MegaBomber's user avatar
-1 votes
1 answer
148 views

How to Convert my custom JSON data Object into Highcharts Angular Series data?

I have some JSON Data object and its needs to convert into Highchyour textarts Series data, I tried lot with my minimal knowledge in JS, but I can't: Json Object: {"Matrix":[{"mdate&...
Garima Srivastava's user avatar
0 votes
3 answers
249 views

Map array of objects to object of key value pairs

I have the following JSON structure: [ { "key11": "value11", "key12": "value12", "key13": "value13", "key14": "...
1fexd's user avatar
  • 3

15 30 50 per page
1
3 4
5
6 7
326