POST reads json object or array of objects, and outputs json array of ids