set proper content-type application/json for generic json handler