cJSON: add a function to create an array of shorts