json-emacs/json-mode

Can't enable json-mode for a buffer without a file

davazp opened this issue · 2 comments

If I invoke json-mode on a buffer without a file, I will get the following error

Wrong type argument: stringp, nil

I use json-mode to display the answer of a server in graphql-mode, but it broke recently because of this.

I think this may have been fixed - invoking json-mode in an empty buffer seems to work for me (using the current version of json-mode.el)

Indeed. It seems to work for me as well. Thanks!