I'm using a post method to post Inventory data to an Https site. I was able to create a json string that looks like this example:
{"CustomerKey": "112221124545412","partCode": "Items-1","Description":"Chips"}
however I need the string look like the following:
{
"parts": "[\r\n {\r\n \"CustomerKey\": \"e3704b8b-a09a-4143-8bb5-81bce8d5af43\",\r\n \"PartCode\": \"Part 2\",\r\n \"Description\": \"Part Description\",\r\n \"AlternateDescription\": \"\",\r\n \"UnitOfMeasure\": \"Each\",\r\n \"EffectiveDate\": null,\r\n \"ExpiryDate\": null,\r\n \"ThresholdQuantity\": 10,\r\n \"Location\": \"4\",\r\n \"Certified\": false,\r\n \"Taxable\": false,\r\n \"UnitPrice\": 0,\r\n \"Quantity\": 0,\r\n \"OrderedbutNotReceived\": 0\r\n },\r\n {\r\n \"CustomerKey\": \"e3704b8b-a09a-4143-8bb5-81bce8d5af43\",\r\n \"PartCode\": \"Part 3\",\r\n \"Description\": \"Part Description\",\r\n \"AlternateDescription\": \"\",\r\n \"UnitOfMeasure\": \"Each\",\r\n \"EffectiveDate\": null,\r\n \"ExpiryDate\": null,\r\n \"ThresholdQuantity\": 10,\r\n \"Location\": \"4\",\r\n \"Certified\": false,\r\n \"Taxable\": false,\r\n \"UnitPrice\": 0,\r\n \"Quantity\": 0,\r\n \"OrderedbutNotReceived\": 0\r\n }\r\n ]"
}
I'm guessing I need to convert the Json object to an Array list!! is that true and how would I do that?
Thanks for the help
*This post is locked for comments