python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
transfer flat object to nested object (javascript)
i am getting a flat object of cms navigation and want to transfer it to a nested object.
The level describes the position of the element in the tree.
Whenever there are subelements they should be stor...
Akiyele
Votes: 0
Answers: 1
How to loop through a nested array of objects in mongo and nodejs?
I have a collection of posts each of which look something like this:
{Post:
[
id: 'post_id',
postedBy: 'user_id',
likes: [0: id: 'user_id', 1: id: 'user_id'],
con...
sgt_pepper85
Votes: 0
Answers: 1
Javascript: How to update a nested json, given the key PATH like doc.field1.field2 as string
I am trying to update a nested JSON which is given as an input, e.g.:
{
"doc": {
"a1": {
"b1": 1,
"b2": [
&q...
AJS
Votes: 0
Answers: 3
Checking for duplicate property values in an array of nested objects
I have a JSON file with an array that has nested objects and arrays that simulates a shopping cart. I want to check for duplicate values and if there are any, update the quantity value of the item oth...
PalesaDev
Votes: 0
Answers: 1