JSON Post Payload Example
Hy Friends
I need to send something like this :
INFO 08 Aug 2021 02:45:30 org.joget.apps.app.lib.JsonTool - jwc_gvhdev2 : Custom JSON Payload : {__ "customer": {__ "code": "J311056483"__ },__ "paymentDetails": [__ {__ "docEntry": 23810,__ "objectType": 18,__ "paymentTotal": 16518875.97__ }__ ],__ "comment": "ABONO No 03",__ "numReference":"BBVA-0000048",__ "nroReceipt": "28",__ "dateReceipt": "Aug 5, 2021 12:00:00 AM",__ "totalTransfer": 600000.0,__ "transferDate": "Aug 5, 2021 12:00:00 AM",__ "codTransferAccount": "110201003",__ "transferNum":126,__ "docObjectCode":46,__ "docType":"2"__}
That example is a result when I use the Custom JSON Payload option on JSON TOOL whit this JSON
{
"customer": {
"code": "J311056483"
},
"paymentDetails": [
{
"docEntry": 23810,
"objectType": 18,
"paymentTotal": 16518875.97
}
],
"comment": "ABONO No 03",
"numReference":"BBVA-0000048",
"nroReceipt": "28",
"dateReceipt": "Aug 5, 2021 12:00:00 AM",
"totalTransfer": 600000.0,
"transferDate": "Aug 5, 2021 12:00:00 AM",
"codTransferAccount": "110201003",
"transferNum":126,
"docObjectCode":46,
"docType":"2"
}
But really I need to use POST Parameters as JSON Payload and need an example for the first, second, and third options that I show in this pic.
Whit this example I get this result and of course the Post Do Not work as I need
"customer.code": "J311056483",_ "dateReceipt": "Aug 5, 2021 12:00:00 AM",_ "docObjectCode": "46",_ "docType": "2",_ "nroReceipt": "27",_ "paymentDetails.docEntry": "23810",_ "paymentDetails.objectType": "18",_ "paymentDetails.paymentTotal": "16518875.97",_ "totalTransfer": "10.0",_ "transferDate": "Aug 5, 2021 12:00:00 AM",_ "transferNum": "125"_}
