How parse Library.ListOfObjects to JSON
Hello! I have a question how to parse Library.ListOfObjects to JSON I send post data like this from client using rest and want parse "templates", after save "codeForm","codeName" in database { "whoIs": "", "templates": [{ "codeForm": "FORM_FIOGROUP", "codeName": "operationDate", "orderNumber": "1", "codeFormat": "YYYY-MM-DD", "header": "DATE", "dbfFormatType": "Date", "dbfFormatLength": "8", "valueFrom": "Payment" }, { "codeForm": "FORM_FIOGROUP", "codeName": "rrn", "orderNumber": "2", "codeFormat": "String", "header": "REFERENCE", "dbfFormatType": "String", "dbfFormatLength": "25", "valueFrom": "Payment" } ] }
I use this way, but it doesn't work:
while iter.$getNext(.key, .value) {
w value
}
Product version: Ensemble 2016.1