allow writing json out to queue