send BPM message events

I am using this rest api /API/bpm/message to send messages to my process, I am successfully sending messages with primitive data types, but I cant send objects or arrays, is there any workaround this issue?