Hey everyone, I've got this JSON in a resource using POST:
{
"currency": "USD",
"filtering": {
"destination": "55",
"tags": ["$system.search.experience"]
},
"pagination": {
"start": 1,
"count": 20
}
}
But get this error back from an API:
{
"ok": false,
"data": "Cannot deserialize value of type java.lang.Integer
from String "$system.search.experience": not a valid java.lang.Integer
value\n at [Source: REDACTED .........
So sounds like I need it to be an integer when it's a string. After multiple hours I cannot seem to get the right JSON to convert it into a number that the API will recognise
If I replace the system.search variable with a static number it works fine.
When I try {
currency: "USD",
filtering: {
destination: "55",
tags: [parseInt($system.search.experience)]
},
pagination: {
start: 1,
count: 20
}
}
It says "Functions are not support"
I wonder what I can do to get this into a number format?
Add a reply
Sign up and join the conversation on Discord