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.