Followed this instruction to set up,
the original JSON was which works on version 1.105.2 :
{
“contents”: [
{
“parts”: [
{
“inline_data”: {
“mime_type”: {{ $(‘Google Drive Trigger’).item.json.mimeType }},
“data”: {{ $json.data }}
}
},
{
“text”: “extract the data”
}
]
}
]
}
changed the JSON to below but still not working:
={
“contents”: [
{
“parts”: [
{
“inline_data”: {
“mime_type”: $(‘Google Drive Trigger’).item.json.mimeType,
“data”: $json.data
}
},
{
“text”: “extract the data”
}
]
}
]
}
Hi there, can you tell me the data type of this $json.data, is it a pdf turn to base64 or what?
i think we need to check on that a little bit deeper since i think either that value or other dynamic value that you put tht makes the error invalid JSON
maybe there’s a typo, or you need to wrap them in a “ “, or you forgot to put a comma, etc.
i would suggest for you to copy the json where the dynamic data is already filled, and paste it in this website to validate if it’s a valid json or not