rudolph-miller / jonathan

JSON encoder and decoder.
http://rudolph-miller.github.io/jonathan/overview.html
164 stars 24 forks source link

Decoding json string containing #\Return fails with unexpected-eof-error #62

Closed fisxoj closed 4 years ago

fisxoj commented 4 years ago

Hello,

I was playing with some json and something autoformatted my object to contain windows style newlines and then jonathan threw an error when I tried to parse the resulting object.

To reproduce:

CL-USER> (jojo:parse (format nil "{\"name\":\"jonathan\"~c~c}" #\Return #\Linefeed) :as :alist)
; Debugger entered on #<JONATHAN.ERROR:<JONATHAN-UNEXPECTED-EOF-ERROR> {1002AC5293}>

Thank you for jonathan, I've been using it for years!

fisxoj commented 4 years ago

I just peeked at the pull requests and it looks like #60 addresses this.

fisxoj commented 4 years ago

It looks like #60 was merged, so thanks to @jlahd and @Rudolph-Miller for sorting it out!