class_docstr: Base class to be used within a FlaskRESTApiWrapper to convert prediction output to json response.
class_docstr_tok: ["Base","class","to","be","used","within","a","FlaskRESTApiWrapper","to","convert","prediction","output","to","json","response","."]
docstr: Convert data_inputs to a dict or a compatible data structure for jsonification.
  
  :param data_inputs (a data structure outputted by the pipeline after a transform):
  :return: encoded data_inputs (jsonifiable dict)
docstr_tok: ["Convert","data_inputs","to","a","dict","or","a","compatible","data","structure","for","jsonification",".",":","param","data_inputs","(","a","data","structure","outputted","by","the","pipeline","after","a","transform",")",":",":","return",":","encoded","data_inputs","(","jsonifiable","dict",")"]
code: def encode(self, data_inputs) -> dict:
      """
      Convert data_inputs to a dict or a compatible data structure for jsonification.
  
      :param data_inputs (a data structure outputted by the pipeline after a transform):
      :return: encoded data_inputs (jsonifiable dict)
      """
      raise NotImplementedError(
          "TODO: inherit from the `JSONDataResponseEncoder` class and implement this method."
      )
  
file_path: Neuraxle/neuraxle/rest/flask.py
imports: from abc import ABC, abstractmethod
  import numpy
  from flask import Response
  from neuraxle.base import BaseStep
  from neuraxle.pipeline import Pipeline
label_desc: Use image node_id 2 for calling the JSONDataResponseEncoder obj's underlying member method code with example usage: obj.encode(data_inputs) without return types