{
"submissionUid": "CNWRXZESJEZ1YQC3E7T8G20J10",
"acceptedDocuments": [
{
"uuid": "H2YRP9VQXFB4ZFHDE7T8G20J10",
"invoiceCodeNumber": "9112450011"
}
],
"rejectedDocuments": []
}
hi all,
I'm calling an API and return above result. However, if using jsonpackage, loadstring and getvalue, it will not get "uuid" and "invoiceCodeNumber" value due to exist of barcket [....]. How can overcome this issue? My script as below :
lnv_pack1 = create jsonpackage
lnv_pack2 = create jsonpackage
//Load the JSON string via jsonpackage
lnv_pack1.loadstring(ls_string) //as return result shown above
//Get the JSON string under key=batters
ls_sid = lnv_pack1.getvalue("submissionUid")
ls_value = lnv_pack1.getvalue("acceptedDocuments")
//Load the new JSON string via jsonpackage
lnv_pack2.loadstring( ls_value)
ls_uuid = lnv_pack2.getvalue("uuid") // cannot get
ls_inv = lnv_pack2.getvalue("invoiceCodeNumber") // cannot get
Please help.
thanks,
DevOng
Noted, it's work. thanks a lot.