I have made a
HashMap<PriceBreak, ArrayList<PricingElement>>
in my Java code and pushed it to the client through GSON. Now in JavaScript, if I output the Object to the console it looks like this:
Object {
PriceBreak [amount=50-99, discountedPrice=n/a] orderNo:0 forDeletion: false forChanging: false forAdding: false: Array[5],
PriceBreak [amount=250+, discountedPrice=n/a] orderNo:0 forDeletion: false forChanging: false forAdding: false: Array[5],
PriceBreak [amount=1-9, discountedPrice=n/a] orderNo:0 forDeletion: false forChanging: false forAdding: false: Array[5],
PriceBreak [amount=100-249, discountedPrice=n/a] orderNo:0 forDeletion: false forChanging: false forAdding: false: Array[5], …
}
And I have no idea how to access the key(PriceBreak) members or values (ArrayList). Looks like each key is named the same (PriceBreak) and I don't know how to access a specific one. Any advice?