class_docstr: This is a feature extraction mixin used to provide saving/loading functionality for sequential and image feature
  extractors.
class_docstr_tok: ["This","is","a","feature","extraction","mixin","used","to","provide","saving\/loading","functionality","for","sequential","and","image","feature","extractors","."]
docstr: Save this instance to a JSON file.
  
  Args:
      json_file_path (`str` or `os.PathLike`):
          Path to the JSON file in which this feature_extractor instance's parameters will be saved.
docstr_tok: ["Save","this","instance","to","a","JSON","file",".","Args",":","json_file_path","(","`","str","`","or","`","os.PathLike","`",")",":","Path","to","the","JSON","file","in","which","this","feature_extractor","instance","'s","parameters","will","be","saved","."]
code: def to_json_file(self, json_file_path: Union[str, os.PathLike]):
      """
      Save this instance to a JSON file.
  
      Args:
          json_file_path (`str` or `os.PathLike`):
              Path to the JSON file in which this feature_extractor instance's parameters will be saved.
      """
      with open(json_file_path, "w", encoding="utf-8") as writer:
          writer.write(self.to_json_string())
  
imports: import copy
  import json
  import os
  from collections import UserDict
  from typing import TYPE_CHECKING, Any, Dict, Optional, Tuple, Union
  import numpy
  from .dynamic_module_utils import custom_object_save
  from .utils import FEATURE_EXTRACTOR_NAME, PushToHubMixin, TensorType, cached_file, copy_func, download_url, is_flax_available, is_jax_tensor, is_numpy_array, is_offline_mode, is_remote_url, is_tf_available, is_torch_available, is_torch_device, logging, torch_required
label_desc: Use image node_id 10 for calling the FeatureExtractionMixin obj's underlying member method code with example usage: obj.to_json_file(json_file_path) without return types