create action for interpreting a json request