Best regard I need to create the following result with JsonGenerator:
"servicios": {
"procedimientos": [
{
"codPrestador": "500000000001",
"fechalnicioAtencion": "2021-08-18 08:10"
}
]
}
this is my code:
ll_Subitem_Object = lnv_JsonGenerator.additemobject(ll_Item_Array,"servicios")
ll_Subitem_Array=lnv_JsonGenerator.additemarray(ll_Subitem_Object,"procedimientos")
lnv_JsonGenerator.AddItemString(ll_Subitem_Array,"codPrestador","500000000001")
lnv_JsonGenerator.AddItemString(ll_Subitem_Array,"fechalnicioAtencion","2021-08-19 05:00")
However, my result is this:
"servicios": {
"procedimientos": [
]
}
I get empty and I can't insert values into the object array. What will I be doing wrong? I appreciate the help