1. Malek Taha
  2. PowerBuilder
  3. Friday, 6 January 2023 21: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"
}

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Friday, 6 January 2023 21:35 PM UTC
  2. PowerBuilder
  3. # 1
Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.