Struggling with sending a json object to a java API backend that requires an Object containing a list of objects.
Wondering if it's possible to create a list of objects inside a javascript Object. While I know we can create an "Array" of objects within an Object, the data structure needed is a bit more complex.
https://i.sstatic.net/BKLsK.png
In the assignToMap
Object, there are key value pairs where the key is an integer and the value is an array. I have tried other solutions but could only come up with creating an array of objects inside an Object like this.
https://i.sstatic.net/g0ko6.png
Any assistance or suggestions would be greatly appreciated.