Function: projectile--read-json-file

projectile--read-json-file is a byte-compiled function defined in projectile.el.

Signature

(projectile--read-json-file FILE &rest ARGS)

Documentation

Read FILE as JSON, passing ARGS to json-parse-buffer.

Returns nil when FILE doesn't exist, or when this Emacs was built without native JSON support.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--read-json-file (file &rest args)
  "Read FILE as JSON, passing ARGS to `json-parse-buffer'.
Returns nil when FILE doesn't exist, or when this Emacs was built
without native JSON support."
  (when (and (functionp 'json-parse-buffer) (file-exists-p file))
    (with-temp-buffer
      (insert-file-contents file)
      (goto-char (point-min))
      (apply #'json-parse-buffer args))))