JSON file with array of values but no property name

32 views
Skip to first unread message

David Friday

unread,
Aug 15, 2025, 1:34:40 PMAug 15
to Bots Open Source EDI Translator
Hi,

I received a JSON file with the following and it generates the error List content must be a "object"."

"palletDimensions": [
40,
48,
60
],


The data above is not needed in my output file, does anybody know a way to remove or bypass this to continue processing the file.

Any suggestions are appreciated.

Thanks,

David

Tom Westrick

unread,
Aug 18, 2025, 9:36:02 AMAug 18
to Bots Open Source EDI Translator
Interesting. That looks like valid JSON. Where is Bots erroring? You sure your grammar is configured correctly? Either way, you could remove it using a route script, probably postincommunication. https://bots.readthedocs.io/en/latest/configuration/route/route-scripting.html

-Tom

David Friday

unread,
Aug 18, 2025, 11:42:22 AMAug 18
to Bots Open Source EDI Translator
Hi Tom,

 The grammar works when I remove e.g. "palletDimensions": [], and I have been unable to create a route-script that could remove/replace all the variations of the below.
40,
48,
60


Thanks anyway,

David

Tom Westrick

unread,
Aug 18, 2025, 11:52:00 AMAug 18
to Bots Open Source EDI Translator
Here's another post about this. Appears Bots doesn't support JSON arrays - https://groups.google.com/g/botsmail/c/bgSQFWVyDIU/m/ArFfd5AYBAAJ

David Friday

unread,
Aug 18, 2025, 6:55:30 PMAug 18
to Bots Open Source EDI Translator
Thanks for your help.
Reply all
Reply to author
Forward
0 new messages