I need to access the data of a subarray via javascript, I can currently access the contents of the entire array:
WhatIneedtogetinthecaseiscodigoImpressora
thatisinsidesubarrayimpressoraPedido
butIcannotfindanythingtohelpmewithit.
ArrayContent:
{"empresa":"testes",
"itensPedido":
[
{"impressoraPedido":
{"persistenceId":2,
"persistenceId_string":"2",
"persistenceVersion":0,
"persistenceVersion_string":"0",
"codigoImpressora":"2",
"codEmpresa":3,
"patrimonio":"1327",
"modeloImpressora":"T644",
"setorinstalacao":"Depósito peças"},
"suprimentoPedido":
{"persistenceId":3,
"persistenceId_string":"3",
"persistenceVersion":0,
"persistenceVersion_string":"0",
"codigoModeloImpressora":"2",
"codigoModeloSuprimento":2,
"nomeSuprimento":"TONER LEXMARK T644",
"codModeloSuprimento":"64418XL"},
"quantidadePedido":1}
]
}