added PUT json handler