added ability to batch insert jobs using JSON API by passing an array of jobs