# HTTP Request JSON Body seems to be getting formatted to remove brackets

**URL:** <https://developer.sailpoint.com/discuss/t/http-request-json-body-seems-to-be-getting-formatted-to-remove-brackets/95693>\
**Category:** SHF Discussion and Questions\
**Tags:** workflows, sailpoint-identity-security, apis\
**Created:** [December 30, 2024, 10:00pm UTC](https://developer.sailpoint.com/discuss/t/http-request-json-body-seems-to-be-getting-formatted-to-remove-brackets/95693 "2024-12-30T22:00:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jewalker](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@jewalker](https://developer.sailpoint.com/discuss/u/jewalker)\
**Post date:** [December 30, 2024, 10:00pm UTC](https://developer.sailpoint.com/discuss/t/http-request-json-body-seems-to-be-getting-formatted-to-remove-brackets/95693/1 "2024-12-30T22:00:29Z")

</div>

Hello, I’ve run into an odd situation.

I need to pass a specific JSON structure to create a termination ticket, but Workflows seems to remove the brackets at the beginning and end when it is sent.

I found this quote but I’m not sure that it should be applying to a free form body field, nonetheless it is. Goofy thing too is that in the test workflow output it seems fine but then in the execution workflow export they are gone.

> [@Recursive Workflows in IdentityNow](https://developer.sailpoint.com/discuss/t/recursive-workflows-in-identitynow/16235/1):
>
> Since Workflows will remove the array brackets of single item arrays

I need to pass this structure to my ITSM to create the termination ticket:

```auto
[
    {
        "tickettype_id": "76",
        "details":"Automated ticket creation by SailPoint Identity Security Cloud for ",
        "customfields": [
            {
                "id": "259",
                "value": "2024-12-30T00:00:00.000Z"
            },
            {
                "id": "240",
                "value": {
                    "name": "First Last"
                }
            }
        ]
    }
]

```

Is there a way to prevent workflows from removing those?

Thank you!

---

<div class="post-metadata">

**Author:** ![GOKUL\_ANANTH\_M](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/gokul_ananth_m/32/14416_2.png) [@GOKUL\_ANANTH\_M](https://developer.sailpoint.com/discuss/u/GOKUL_ANANTH_M)\
**Post date:** [December 31, 2024, 3:19pm UTC](https://developer.sailpoint.com/discuss/t/http-request-json-body-seems-to-be-getting-formatted-to-remove-brackets/95693/2 "2024-12-31T15:19:53Z")

</div>

Hi @jewalker ,

```auto
{
        "tickettype_id": "76",
        "details":"Automated ticket creation by SailPoint Identity Security Cloud for ",
        "customfields": [
            {
                "id": "259",
                "value": "2024-12-30T00:00:00.000Z"
            },
            {
                "id": "240",
                "value": {
                    "name": "First Last"
                }
            }
        ]
    }

```

Just provide the above JSON in the body field.

Thanks!! ~ Gokul

---

<div class="post-metadata">

**Author:** ![jewalker](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@jewalker](https://developer.sailpoint.com/discuss/u/jewalker)\
**Post date:** [December 31, 2024, 10:10pm UTC](https://developer.sailpoint.com/discuss/t/http-request-json-body-seems-to-be-getting-formatted-to-remove-brackets/95693/3 "2024-12-31T22:10:05Z")

</div>

I have tried that as well. The target system gives me the same error. The issue is that what you provided is what workflows end up sending instead of leaving the brackets and the beginning and end.

---

<div class="post-metadata">

**Author:** ![jewalker](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@jewalker](https://developer.sailpoint.com/discuss/u/jewalker)\
**Post date:** [December 31, 2024, 10:11pm UTC](https://developer.sailpoint.com/discuss/t/http-request-json-body-seems-to-be-getting-formatted-to-remove-brackets/95693/4 "2024-12-31T22:11:40Z")

</div>

I have managed to work around this by creating the json body within a define variable operator and then passing that to the json body within the http request.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [March 1, 2025, 10:11pm UTC](https://developer.sailpoint.com/discuss/t/http-request-json-body-seems-to-be-getting-formatted-to-remove-brackets/95693/5 "2025-03-01T22:11:48Z")

</div>

Closed on March 1, 2025, 10:11pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
