# Error when sending array as field values

**URL:** <https://community.hubspot.com/t/error-when-sending-array-as-field-values/76200>\
**Category:** APIs & Integrations\
**Tags:** forms\
**Created:** [February 28, 2023, 10:25pm UTC](https://community.hubspot.com/t/error-when-sending-array-as-field-values/76200 "2023-02-28T22:25:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JairoPy](https://avatars.discourse-cdn.com/v4/letter/j/9f8e36/32.png) [@JairoPy](https://community.hubspot.com/u/JairoPy)\
**Post date:** [February 28, 2023, 10:25pm UTC](https://community.hubspot.com/t/error-when-sending-array-as-field-values/76200/1 "2023-02-28T22:25:34Z")

</div>

Hello There!

Around a month ago I was able to send an array as follows using the form API v3:

{“name”: “utm\_medium”,“value”: [“cpc”,“ppc”]}

I’m not sure when the API changed, but now I’m receiving the following error:

**Invalid input JSON on line 1, column 41: Cannot deserialize value of type `java.lang.String` from Array value (token `JsonToken.START\_ARRAY**

I already fixed this by sending a string instead of an array.

My team wants to have an idea of how many leads we could have lost, so I would appreciate it if somebody had info about when this change happened.

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [March 1, 2023, 6:37pm UTC](https://community.hubspot.com/t/error-when-sending-array-as-field-values/76200/2 "2023-03-01T18:37:06Z")

</div>

Hi, there. Thanks for your questions. Let’s see if we can get the converstaion going — hey @Teun @miljkovicmisa, do you have any feedback for @JairoPy?

Thank you very much! — Jaycee

---

<div class="post-metadata">

**Author:** ![BGrassi](https://avatars.discourse-cdn.com/v4/letter/b/a3d4f5/32.png) [@BGrassi](https://community.hubspot.com/u/BGrassi)\
**Post date:** [March 13, 2023, 4:49pm UTC](https://community.hubspot.com/t/error-when-sending-array-as-field-values/76200/3 "2023-03-13T16:49:51Z")

</div>

Was there ever a solution to this? I am running into the same issue on a Deals Search and can’t figure out how to get around it.

---

<div class="post-metadata">

**Author:** ![rzman](https://avatars.discourse-cdn.com/v4/letter/r/e0b2c6/32.png) [@rzman](https://community.hubspot.com/u/rzman)\
**Post date:** [September 3, 2025, 1:49pm UTC](https://community.hubspot.com/t/error-when-sending-array-as-field-values/76200/4 "2025-09-03T13:49:14Z")

</div>

You can pass multiple values like this:

`"value": "cpc;ppc"`

It’s called enumeration fields.
