class_docstr: Any iterable of (label, text_input) pairs qualifies as a ``Dataset``.
class_docstr_tok: ["Any","iterable","of","(","label",",","text_input",")","pairs","qualifies","as","a","``","Dataset","``","."]
docstr: Loads json file, each line of the file is a json string.
  
  :param json_path: file path
  :param encoding: file's encoding, default: utf-8
  :param fields: json object's fields that needed, if None,
      all fields are needed. default: None
  :param dropna: weather to ignore and drop invalid data,
      :if False, raise ValueError when reading invalid data. default: True
  :return:
docstr_tok: ["Loads","json","file",",","each","line","of","the","file","is","a","json","string",".",":","param","json_path",":","file","path",":","param","encoding",":","file","'s","encoding",",","default",":","utf-8",":","param","fields",":","json","object","'s","fields","that","needed",",","if","None",",","all","fields","are","needed",".","default",":","None",":","param","dropna",":","weather","to","ignore","and","drop","invalid","data",",",":","if","False",",","raise","ValueError","when","reading","invalid","data",".","default",":","True",":","return",":"]
code: def load_json(
      self, json_path, encoding="utf-8", fields=None, dropna=True
  ):
      r"""
      Loads json file, each line of the file is a json string.
  
      :param json_path: file path
      :param encoding: file's encoding, default: utf-8
      :param fields: json object's fields that needed, if None,
          all fields are needed. default: None
      :param dropna: weather to ignore and drop invalid data,
          :if False, raise ValueError when reading invalid data. default: True
      :return:
  
      """
      json_dics = []
      for line, json_dic in read_json(
          json_path, encoding=encoding, fields=fields, dropna=dropna
      ):
          json_dics.append(json_dic)
  
      self.load(json_dics)
  
imports: from tqdm import tqdm
  from ...common.utils import logger
  from ..component.sample import Sample, CnSample
  from ...common.utils.load import task_class_load
  from ...common.settings import SAMPLE_PATH, NLP_TASK_MAP
  from ...common.utils.file_io import read_csv, read_json, save_csv, save_json
label_desc: Use image node_id 11 for calling the Dataset obj's underlying member method code with example usage: obj.load_json(json_path, encoding, fields, dropna) without return types