Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
80 views

Created nested json object in vb.net

I am unable to create a json object with nested objects. See the code and the current output versus the desired output. Goal Output: { "carlist" : [ { "attributes": [ { ...
CavFife's user avatar
0 votes
1 answer
68 views

Game Board Boundaries Using Random x y coordinates Javascript

My am on the Last part of this game and stuck if I place the ships my self they fit of course but I am using Math.floor(Math.Random() * 10) to get the x,y coords. The ships gets placed on the edges ...
Jermain Singleton's user avatar
0 votes
1 answer
56 views

Data structure for a console menu in Node.js with nested options that can be navigated backwards

I've been looking at ways to store and navigate a short nested / multi-level menu structure in Node.js. I don't want to display all the options at once, I want to display each submenu independently ...
user2066480's user avatar
  • 1,425
-3 votes
1 answer
72 views

Sort nested javascript array / object [closed]

I have a Javascript multilevel object like this: { "tennis": { "John": { "Total_score": 329, "Played_games": [ ...
Bas van Ingen's user avatar
0 votes
1 answer
60 views

How can I convert (pass) an object that represents a two dimensional array to a 2-D array variable?

In my C# code I have an object in my code that represents a two dimensional array. I tried to write the value to a file by just converting it to string. I got something like an array but I saw the ...
Mdarende's user avatar
  • 801
0 votes
3 answers
300 views

How do I reference a nested object or arrays path/location using a variable?

I have some data consisting of objects and array within an object as such: let productDataObj = { prodType1: { keyTermsArr: [], frequencyObj: {}, ratingObj: {} }, prodType2: { ...
MeltingDog's user avatar
  • 15.7k
1 vote
1 answer
32 views

How do I merge the range data of the highlighted cells of my grid's ouput?

I am working on a game and I've come to the point where I am in need of an efficient collision detection system. At the moment, I am using a very heavy handed array of 1 and 0 to indicate a boundary. ...
ifaus's user avatar
  • 11
0 votes
3 answers
109 views

PHP Get the value of every occurrence of a key in a multidimensional array

How would you extract every value of a key regardless of how deep or shallow it is in an array. Here is a sample JSON array. I want to grab every occurrence of "content" and concatenate them ...
Walrus's user avatar
  • 20.6k
0 votes
1 answer
40 views

Why does changing the property of an object change the property of another in a list? [duplicate]

class myObj(): def __init__(self, pos_i, pos_j, pos_k, n = None, unique_property = []): self.pos_i = pos_i self.pos_j = pos_j self.pos_k = pos_k self....
Cookies Random's user avatar
0 votes
2 answers
40 views

Pivot and Reduce JS Object Array

I'm dealing with strange situation here.. I've an array something like below var gblCalibrationData = [ { "CalibrationYear": "2012", "CalibrationData":...
Abhinav's user avatar
  • 1,200
-2 votes
1 answer
164 views

Grouping objects by key and returning new object [duplicate]

I have array of objects that I need to sort it in JavaScript the way that suits me. this is example of array that I have: [ { "id": "AD012014001R", "country": &...
Klak031's user avatar
  • 155
1 vote
1 answer
63 views

Reduce JS object array with same DateTime into new object array with new fields

I'm having JS object array var data = [ { "TagName": "<DanPac_A>.<Daniel.DanOPCHub>.<FT35101A.Blocks_127.ProfileFactor>", "TagValue":...
Abhinav's user avatar
  • 1,200
2 votes
4 answers
77 views

How to filter inside a filter in nested arrays in Javascript

I am trying to fetch all the costBreakdowns where the canceled status is false. So I am trying to filter() inside a filter() to fetch the complete array except the ones where the costBreakdowns have ...
Code_ninja's user avatar
0 votes
1 answer
110 views

JavaScript Read data from multidimensional object with dynamic keys [duplicate]

Background I have an object like below: // Data from the database according to their columns and subordinate tables. const itemData = { 'license_number': '25/2022', 'application': { '...
Mayeenul Islam's user avatar
0 votes
3 answers
57 views

Reduce objects in a 2d array to a single property and assign new static keys

I have an array mind [{"id":"331","file_name":"3b1379e2496408dd4c865f5f63f96bf6","file_path":"https://path/3b1379e2496408dd4c865f5f63f96bf6.png&...
Hector's user avatar
  • 47

15 30 50 per page
1
2 3 4 5
31