Update put and post json methods.