In my Java code, I have created a data structure using HashMap that stores PriceBreak objects along with corresponding PricingElement ArrayLists. This data has been sent to the client via GSON. However, when I try to access this object in JavaScript and log it to the console, the output is quite complex.
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], …
}
I am struggling to figure out how to access the individual key members or values. It seems like all keys are named PriceBreak and I am unsure how to target a specific one. Do you have any suggestions on how to tackle this issue?