federicotdn / verb

Organize and send HTTP requests from Emacs
https://melpa.org/#/verb
GNU General Public License v3.0
540 stars 20 forks source link

fix pretty print for map with `t` key value #35

Closed ananthakumaran closed 3 years ago

ananthakumaran commented 3 years ago

json-pretty-print-buffer fails if there is a map with t as one of the keys. Changing the key type to string solves the issue.

I am not sure why this is required and not done by json-pretty-print-buffer by default.

ananthakumaran commented 3 years ago

I reported it to emacs https://debbugs.gnu.org/cgi/bugreport.cgi?bug=46811 and looks like it's already fixed in emacs 28 branch

federicotdn commented 3 years ago

Thanks for the fix, and for adding a test!