code: def __call__(self, str_value: str) -> Any:
      try:
          value = json.loads(str_value)
      except json.JSONDecodeError:
          raise TypeError(
              f"Cannot parse json value '{str_value}' for {self}"
          )
      return self._validate_and_cast(value, self.expected_type)
  
file_path: ml-cvnets/options/parse_args.py
imports: import json
  import typing
  from typing import Any
label_desc: Use image node_id 3 for calling the JsonValidator obj's underlying member method code with example usage: obj.__call__(str_value) and returns: self