Rectifying beanshell of convert to order to send json array of ids instead of json object