class_docstr: json commands.
docstr: Return the index of ``scalar`` in the JSON array under ``path`` at key
  ``name``.
  
  The search can be limited using the optional inclusive ``start``
  and exclusive ``stop`` indices.
  
  For more information see `JSON.ARRINDEX <https://redis.io/commands/json.arrindex>`_.
docstr_tok: ["Return","the","index","of","``","scalar","``","in","the","JSON","array","under","``","path","``","at","key","``","name","``",".","The","search","can","be","limited","using","the","optional","inclusive","``","start","``","and","exclusive","``","stop","``","indices",".","For","more","information","see","`","JSON.ARRINDEX","<","https",":","\/\/redis.io\/commands\/json.arrindex",">","`","_","."]
code: def arrindex(
      self,
      name: str,
      path: str,
      scalar: int,
      start: Optional[int] = None,
      stop: Optional[int] = None,
  ) -> List[Union[int, None]]:
      """
      Return the index of ``scalar`` in the JSON array under ``path`` at key
      ``name``.
  
      The search can be limited using the optional inclusive ``start``
      and exclusive ``stop`` indices.
  
      For more information see `JSON.ARRINDEX <https://redis.io/commands/json.arrindex>`_.
      """  # noqa
      pieces = [name, str(path), self._encode(scalar)]
      if start is not None:
          pieces.append(start)
          if stop is not None:
              pieces.append(stop)
  
      return self.execute_command("JSON.ARRINDEX", *pieces, keys=[name])
  
imports: import os
  from json import JSONDecodeError, loads
  from typing import Dict, List, Optional, Tuple, Union
  from redis.exceptions import DataError
  from redis.utils import deprecated_function
  from ._util import JsonType
  from .decoders import decode_dict_keys
  from .path import Path
label_desc: Use image node_id 2 for calling the JSONCommands obj's underlying member method code with example usage: obj.arrindex(name, path, scalar, start, stop) and returns: self