# "queueItemParameters must not be null" Error while posting Json array while using Orchestrator API(AddQueueItem)

**URL:** <https://forum.uipath.com/t/queueitemparameters-must-not-be-null-error-while-posting-json-array-while-using-orchestrator-api-addqueueitem/382341>\
**Category:** Orchestrator\
**Tags:** api, orchestrator\
**Created:** [December 20, 2021, 2:33pm UTC](https://forum.uipath.com/t/queueitemparameters-must-not-be-null-error-while-posting-json-array-while-using-orchestrator-api-addqueueitem/382341 "2021-12-20T14:33:27Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![codemonkee](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/codemonkee/32/20521_2.png) [@codemonkee](https://forum.uipath.com/u/codemonkee)\
**Post date:** [December 21, 2021, 3:26am UTC](https://forum.uipath.com/t/queueitemparameters-must-not-be-null-error-while-posting-json-array-while-using-orchestrator-api-addqueueitem/382341/7 "2021-12-21T03:26:47Z")

</div>

@pikorpa pointed out **`SpecificContent`** is _Dictionary(Of String, Object)_, so if you want to add a more complex JSON object that contains Arrays / Objects, you must first serialize the JSON.

```json
{
  "itemData": {
    "Name": "asdf",
    "Priority": "High",
    "Reference": "{{$guid}}",
    "SpecificContent": {
        "Test" : {{specific_content}}
    }
  }
}

```

In the above `specific_content` is the value string of the following (Using Postman)

```auto
const TestData= [{
        "seq": 1,
        "loc": {"address": {"city": "ABC", "state": "XX", "zip": "1234"}}
      },
      {
        "seq": 99,
        "loc": {"address": {"city": "YYYY", "state": "AR", "zip": "54321"}
        },
        "comments": [
          {"type": "Test Comment Data", "value": "comment 1"},
          {"type": "Test Comment Data 2", "value": "comment 2"}
        ]
      }]

pm.environment.set("specific_content", JSON.stringify(JSON.stringify(TestData)));

```

which results in `specific_content` with the string value of `"[{\"seq\":1,\"loc\":{\"address\":{\"city\":\"ABC\",\"state\":\"XX\",\"zip\":\"1234\"}}},{\"seq\":99,\"loc\":{\"address\":{\"city\":\"YYYY\",\"state\":\"AR\",\"zip\":\"54321\"}},\"comments\":[{\"type\":\"Test Comment Data\",\"value\":\"comment 1\"},{\"type\":\"Test Comment Data 2\",\"value\":\"comment 2\"}]}]"`

![image](https://global.discourse-cdn.com/uipath/original/4X/e/1/c/e1cb9866cffb5bf2ee0e905d3679c66033f5cd32.png)

![image](https://global.discourse-cdn.com/uipath/original/4X/a/1/9/a193ff280f6944166d3efd4076c99ab67314defb.png)

You would then have to deserialize the JSON string in “Test” value when you fetch the queue item.

---

_[View the full topic](https://forum.uipath.com/t/queueitemparameters-must-not-be-null-error-while-posting-json-array-while-using-orchestrator-api-addqueueitem/382341)._
