class_docstr: JSON datasource, for reading and writing JSON and JSONL files.
code: def __init__(
      self,
      paths: Union[str, List[str]],
      *,
      arrow_json_args: Optional[Dict[str, Any]] = None,
      **file_based_datasource_kwargs,
  ):
      from pyarrow import json
  
      super().__init__(paths, **file_based_datasource_kwargs)
  
      if arrow_json_args is None:
          arrow_json_args = {}
  
      self.read_options = arrow_json_args.pop(
          "read_options", json.ReadOptions(use_threads=False)
      )
      self.arrow_json_args = arrow_json_args
  
imports: from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union
  from ray.data.datasource.file_based_datasource import FileBasedDatasource
  from ray.util.annotations import PublicAPI
label_desc: Use image node_id 1 to create a new JSONDatasource object from inherited base classes: FileBasedDatasource with example: obj = JSONDatasource(paths)