The name or relative path of the JSON file to parse. Should include the file extension (.json) if present in the filename.
OptionalFrom: stringOptional base directory path for loading the JSON file. If provided, it serves as the root directory for the file path. If omitted, the current working directory is used as the base path.
Promise
Reads and parses a JSON file asynchronously, returning the parsed content. This function loads a JSON file from the specified path and converts its content into JavaScript objects using JSON.parse().