class_docstr: Represents a Dataset Format that is used when calling a DefaultModelMonitor.
class_docstr_tok: ["Represents","a","Dataset","Format","that","is","used","when","calling","a","DefaultModelMonitor","."]
docstr: Returns a DatasetFormat JSON string for use with a DefaultModelMonitor.
  
  Args:
      lines (bool): Whether the file should be read as a json object per line. Default: True.
  
  Returns:
      dict: JSON string containing DatasetFormat to be used by DefaultModelMonitor.
docstr_tok: ["Returns","a","DatasetFormat","JSON","string","for","use","with","a","DefaultModelMonitor",".","Args",":","lines","(","bool",")",":","Whether","the","file","should","be","read","as","a","json","object","per","line",".","Default",":","True",".","Returns",":","dict",":","JSON","string","containing","DatasetFormat","to","be","used","by","DefaultModelMonitor","."]
code: def json(lines=True):
      """Returns a DatasetFormat JSON string for use with a DefaultModelMonitor.
  
      Args:
          lines (bool): Whether the file should be read as a json object per line. Default: True.
  
      Returns:
          dict: JSON string containing DatasetFormat to be used by DefaultModelMonitor.
  
      """
      return {"json": {"lines": lines}}
  
file_path: sagemaker-python-sdk/src/sagemaker/model_monitor/dataset_format.py
imports: from __future__ import print_function, absolute_import
label_desc: Use image node_id 2 for calling the DatasetFormat obj's underlying member method code with example usage: obj.json(lines) and returns: dict