Try not to use cJSON version of CAN write API if possible.

Fixed #40.