class_docstr: Derived class needs to implement the following interface:
    * query() -- given input, return query result
    * get_doc_string() -- returns documentation for the Query Object
class_docstr_tok: ["Derived","class","needs","to","implement","the","following","interface",":","*","query","(",")","--","given","input",",","return","query","result","*","get_doc_string","(",")","--","returns","documentation","for","the","Query","Object"]
docstr: Convert a result from object query to python data structure that can
  easily serialize over network
docstr_tok: ["Convert","a","result","from","object","query","to","python","data","structure","that","can","easily","serialize","over","network"]
code: def _make_serializable(cls, result):
      """Convert a result from object query to python data structure that can
      easily serialize over network
      """
      try:
          json.dumps(result)
      except TypeError:
          raise TypeError(
              "Result from object query is not json serializable: "
              f"{result}"
          )
  
      return result
  
file_path: TabPy/tabpy/tabpy_tools/query_object.py
imports: import abc
  import logging
  import os
  import json
  import shutil
  import cloudpickle
label_desc: Use image node_id 9 for calling the QueryObject obj's underlying member method code with example usage: obj._make_serializable(cls, result) and returns: result