APIs & Integrations

AdKerremans
Participant

Invalid input JSON on line 5, column 17: Cannot deserialize instance of `java.util.LinkedHashMap`

Ls,

 

i am doing a search of contactperson with the following usl

https://api.hubapi.com/crm/v3/objects/contacts?limit=100&hapikey=xxxx

 

and json

 

{
"limit": 100,
"after": 0,
"sorts": ["id"],
"properties": [
"id",
"company",
"email",
"firstname",
"lastname",
"phone",
"website"
],
"filterGroups": [{"filters": [{
"propertyName": "lastmodifieddate",
"value": "1621015701000",
"operator": "GTE"
}]}]
}

 

I get the error below:

 

Invalid input JSON on line 5, column 17: Cannot deserialize instance of `java.util.LinkedHashMap` out of START_ARRAY token",
"correlationId":"d8040bff-4d03-4b4a-b2ba-fe7f6c5caebd"}

 

I don't see what is 

0 Upvotes
4 Replies 4
TStrawbridge7
Member

Invalid input JSON on line 5, column 17: Cannot deserialize instance of `java.util.LinkedHashMap`

My appologies for this being so late with an answer. I've just ran across this with an implementation. What happens when you change this: 

"propertyName": "lastmodifieddate",
"value": "1621015701000",

to this:

"lastmodifieddate": "1621015701000",
0 Upvotes
GeorgeBThomas
Guide | Elite Partner
Guide | Elite Partner

Invalid input JSON on line 5, column 17: Cannot deserialize instance of `java.util.LinkedHashMap`

@AdKerremans,

 

Oh my, that looks very nerdy! Good news, I know some amazing nerds! @remingtonbegg or @Kevin-C any thought here?

 

George B. Thomas

HubSpot Helper & Owner

George B. Thomas, LLC

(252) 656-5950 | (330) 232-6117
george@georgebthomas.com
www.georgebthomas.com
RV3
Member

Invalid input JSON on line 5, column 17: Cannot deserialize instance of `java.util.LinkedHashMap`

i want to my shopify messages show in hubspot conversation using hubspot api so please tell me how to do??

0 Upvotes
Kevin-C
Recognized Expert | Partner
Recognized Expert | Partner

Invalid input JSON on line 5, column 17: Cannot deserialize instance of `java.util.LinkedHashMap`

Thanks @GeorgeBThomas 

 

Hey @AdKerremans 

 

Unfortunately I am unable to replicate this error. The provided JSON works on my test account.

 

Maybe check the format of your inputs? Are you passing a string where it's expecting an POJO or JSON?

 

EDIT:

Also check your header content-type

Kevin Cornett - Sr. Solutions Architect @ BridgeRev