added json_listener, a JSON request logger for testing protocols