Move send_json out of base SocketPattern class