def end_stream(self, stream_id):
        self.state_machine.process_input(ConnectionInputs.SEND_DATA)
        frames = self.streams[stream_id].end_stream()
        self._prepare_for_sending(frames)
Encode `value` to JSON.
dataset/ETHPy150Open python-hyper/hyper-h2/h2/connection.py/H2Connection.end_stream--crossover with--dataset/ETHPy150Open edgewall/trac/trac/util/presentation.py/to_json