blahgeek/emacs-devdocs-browser

Symbol’s function definition is void: json-parse-buffer

ir33k opened this issue · 1 comments

ir33k commented

When running devdocs-browser-install-doc interactive function I'm getting error "Symbol’s function definition is void: json-parse-buffer". It's caused by line:

(json-parse-buffer :object-type 'plist :array-type 'array))

Looks like my Emacs don't have json-parse-buffer function. I'm on latest Emacs 28.0.50. Issue can be reproduced with emacs -Q so my personal configuration is not a problem.

Is this because new Emacs don't have this function build in or I'm missing some package that should be required?

ir33k commented

I found source of error. Since Emacs 27 native support for JSON was added. It requires "Jansson library". I didn't have it while building my Emacs. After installing missing library with apt install libjansson-dev and building Emacs again issue was gone.