class_docstr: Output single-line JSON objects.
  Carries over extra fields from the input.
class_docstr_tok: ["Output","single-line","JSON","objects",".","Carries","over","extra","fields","from","the","input","."]
code: def __init__(self, stream) -> None:
      self.stream = stream
  
imports: import json
  import sys
  from abc import ABC, abstractmethod
  from itertools import chain
  from typing import Optional
  import sockeye.constants
  from sockeye.utils import smart_open
  from .None import inference
label_desc: Use image node_id 1 to create a new JSONOutputHandler object from inherited base classes: OutputHandler with example: obj = JSONOutputHandler(stream)