Resolved JSONGENERATOR
- How-to
- Malek Taha
- PowerBuilder
- Friday, 6 January 2023 09:28 PM UTC
Hi
I am trying to build a JSON file using the JSONGenerator object
I was able to build the file however i am having trouble getting the "LineItem" array to have the "measure" "Notes" and " Refs" object to be child arrays of line item. I can get them to be object s but nothing shows up when i tried to add them under "lineitem" as arrays.
If you can please help we with a sample of how to build the file below using the JSONGenerator i will really appreciate it as it is holding a project that is complete but for this JSON file
Thanks
Malek
{
"commodity": "string",
"orderNumber": "string",
"quantity": 0,
"miles": 0,
"lineItems": [
{
"measures": [
{
"uom": "string",
"qualifier": "string",
"value": 0,
"significanceCode": "string"
}
],
"notes": [
{
"note": "string",
"noteType": "string"
}
],
"refs": [
{
"referenceNumber": "string",
"referenceType": "string",
"description": "string"
}
]
}
],
"weightUOM": "string"
}
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.