class_docstr: Implementation. Captures batches in JSON format, returns
  also in JSON format.
docstr: Converts the output of the model back into compatible JSON
code: def _to_json(self, output):
      """
      Converts the output of the model back into compatible JSON
      """
      out_dict = {"predictions": output}
      return json.dumps(out_dict)
  
file_path: serve/ts/torch_handler/request_envelope/json.py
imports: import json
  from base64 import b64decode
  from itertools import chain
  from .base import BaseEnvelope
label_desc: Use image node_id 6 for calling the JSONEnvelope obj's underlying member method code with example usage: obj._to_json(output) and returns: json