code: def parse_json(s, **kwargs):
      """Parse a JSON string into a dict."""
      try:
          nb_dict = json.loads(s, **kwargs)
      except ValueError as e:
          message = f"Notebook does not appear to be JSON: {s!r}"
          # Limit the error message to 80 characters.  Display whatever JSON will fit.
          if len(message) > 80:
              message = message[:77] + "..."
          raise NotJSONError(message) from e
      return nb_dict
  
file_path: nbformat/nbformat/reader.py
imports: from __future__ import annotations
  import json
  from .validator import ValidationError
label_desc: Use image node_id 1 for calling a global function with example usage: parse_json(s) and returns: nb_dict