using jquery to submit json request