   (condition-case err
       (with-temp-buffer
         (funcall 'call-process "dasel" nil t nil "select" "-f" file-path "-w" "json")
-        (goto-char (point-min))
-        (json-parse-buffer :object-type 'alist :array-type 'list))
+        (json-parse-string (buffer-string) :object-type 'alist :array-type 'list))
     (error (message "%s" (error-message-string err)) nil)))
 
 (defvar python-watched-config-files nil)

                 (setf python-black-command nil
                       python-black-d-command nil)))

      ;; Set `blackd' request headers
      (when-let (python-black-d-command
                 (pyproject-path (python-pyproject-path))
                 (black-d-request-headers
                  (let-alist (python-parse-pyproject)
                    `(,@(if .tool.black.line-length
                            `(,(cons "X-Line-Length" (format "%s" .tool.black.line-length))))
                      ,@(if (and .tool.black.skip-string-normalization
                                 (not (eq .tool.black.skip.string-normalization :false)))
                            `(,(cons "X-Skip-String-Normalization" "true")))
                      ,@(if (or .tool.black.fast .tool.black.safe)
                            `(,(cons "X-Fast-Or-Safe" (if .tool.black.fast "fast" "safe"))))
                      ,@(if (or .tool.black.pyi .tool.black.target-version)
                            `(,(cons "X-Python-Variant"
                                     (if .tool.black.pyi
                                         "pyi"
                                       (funcall 'string-join
                                                (append .tool.black.target-version) ",")))))))))
        (make-local-variable 'python-black-d-request-headers-function)
        (setf python-black-d-request-headers-function (lambda () black-d-request-headers)))

      (python-black-on-save-mode 1))))



              (db
               (or (assoc-default db-file python-pre-commit-database-cache)
                   (when (file-exists-p db-file)
                     (python-watch-config-file db-file 'python-pre-commit-database-cache 'python-parse-pre-commit-db)
                     (when-let ((content (python-parse-pre-commit-db db-file)))
                       (push (cons db-file content) python-pre-commit-database-cache)
                       content))))

              (repo-config
               (seq-find
