# CRM Card Response Parse Error

**URL:** <https://community.hubspot.com/t/crm-card-response-parse-error/81157>\
**Category:** APIs & Integrations\
**Tags:** object, webhooks\
**Created:** [May 12, 2023, 10:21pm UTC](https://community.hubspot.com/t/crm-card-response-parse-error/81157 "2023-05-12T22:21:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kwright2](https://avatars.discourse-cdn.com/v4/letter/k/5e9695/32.png) [@kwright2](https://community.hubspot.com/u/kwright2)\
**Post date:** [May 12, 2023, 10:21pm UTC](https://community.hubspot.com/t/crm-card-response-parse-error/81157/1 "2023-05-12T22:21:03Z")

</div>

Hello,

My CRM Card is making a request to my application. In the “monitor logs,” I’m getting the following error:

```auto
com.fasterxml.jackson.databind.exc.ValueInstantiationException: Cannot construct instance of `com.hubspot.linkedsalesobjects.base.models.objects.ObjectIntegratorView`, problem: propertyValues value
 at [Source: (com.hubspot.java.io.ChunkedByteArrayOutputStream$ChunkedByteArrayInputStream); line: 1, column: 380] (through reference chain: com.hubspot.linkedsalesobjects.base.models.objects.IntegratorViewResult$Json["results"]->java.util.ArrayList[0])

```

I’m not sure what to make of this error. When I hit the API endpoint myself, I’m getting the following response:

```lia-code-sample
{
 "results": [
 {
 "objectId": "xxx",
 "id": "uuid",
 "title": "Swig",
 "link": "<hidden link>",
 "status": "ON_TIME",
 "startDate": "2023-04-21T00:00:00.000Z",
 "endDate": "2023-04-21T00:00:00.000Z",
 }
 ]
}

```

The objectId, id, and link properties have been replaced for privacy purposes. I’m not sure what I’m missing. Any help to at least understand the error message would be appreciated.

---

<div class="post-metadata">

**Author:** ![himanshurauthan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/himanshurauthan/32/53076_2.png) [@himanshurauthan](https://community.hubspot.com/u/himanshurauthan)\
**Post date:** [May 15, 2023, 7:35am UTC](https://community.hubspot.com/t/crm-card-response-parse-error/81157/2 "2023-05-15T07:35:49Z")

</div>

Hello @kwright2  
From the sample JSON response you provided, it seems that there is a trailing comma after the “endDate” property. Remove the comma to make the JSON valid

```lia-code-sample
{
 "results": [
 {
 "objectId": "xxx",
 "id": "uuid",
 "title": "Swig",
 "link": "<hidden link>",
 "status": "ON_TIME",
 "startDate": "2023-04-21T00:00:00.000Z",
 "endDate": "2023-04-21T00:00:00.000Z"
 }
 ]
}

```

After making this correction, try parsing the response again and see if the error persist

---

<div class="post-metadata">

**Author:** ![kwright2](https://avatars.discourse-cdn.com/v4/letter/k/5e9695/32.png) [@kwright2](https://community.hubspot.com/u/kwright2)\
**Post date:** [May 15, 2023, 3:10pm UTC](https://community.hubspot.com/t/crm-card-response-parse-error/81157/3 "2023-05-15T15:10:46Z")

</div>

Hey @himanshurauthan , thanks for the reply. That was my mistake in copying and pasting the JSON. I removed some of the fields for privacy and forgot to remove that comma. Hitting the API endpoint returns a valid JSON.

Does the error message mean that the JSON is invalid?

---

<div class="post-metadata">

**Author:** ![kwright2](https://avatars.discourse-cdn.com/v4/letter/k/5e9695/32.png) [@kwright2](https://community.hubspot.com/u/kwright2)\
**Post date:** [May 15, 2023, 4:30pm UTC](https://community.hubspot.com/t/crm-card-response-parse-error/81157/4 "2023-05-15T16:30:15Z")

</div>

Turns out the issue was that one of the fields is null. HubSpot doesn’t accept a null value. My personal request to the HubSpot team is to return a better error for this scenario. It’s common and would be extremely useful.
