- John Strano
- PowerBuilder
- Wednesday, 18 January 2023 02:55 PM UTC
Attempting to achieve in the JSON output, the following specification...
"streetLines": [
"PLACEHLDR_SHIPPER_ADDRESS_LINE_1",
"PLACEHLDR_SHIPPER_ADDRESS_LINE_2"
],
Trying...
ljp_address.setvalue( "streetLines", "[ 'PLACEHLDR_SHIPPER_ADDRESS_LINE_1' , 'PLACEHLDR_SHIPPER_ADDRESS_LINE_2 ]" , false )
...of course the service to which this request will be submitted will not tolerate enclosing quotation marks...
"streetLines":"[ 'PLACEHLDR_SHIPPER_ADDRESS_LINE_1' , 'PLACEHLDR_SHIPPER_ADDRESS_LINE_2' ]"
...and of course, the Powerscript compiler will not tolerate the arg list for SetValue() that has an array...
ljp_address.setvalue( "streetLines", ls_my_array_of_street_lines , false )
I dunno...is there something like...
ljp_address.setvalue( "streetLines:1"...
ljp_address.setvalue( "streetLines:2"...
...and eventually, can we get as granular as being able to set the nth element of an array in JSON?
Please advise.
Thank you.
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.