implement json request processing (main idea)