rudolph-miller / jonathan

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

jonathan-encoder0 when some object is present twice in to-json's input #55

Closed svetlyak40wt closed 5 years ago

svetlyak40wt commented 6 years ago
CL-USER> (let ((user "bob")) (to-json (list :a user :b user)))
"{\"A\":\"jonathan-encoder0\",\"B\":\"bob\"}"

Expected result is:

{"A": "bob", "B": "bob"}
svetlyak40wt commented 6 years ago

Right now workaround is wrapping second value with format call to make another string instance:

CL-USER> (let ((user "bob")) (to-json (list :a user :b (format nil "~A" user))))
"{\"A\":\"bob\",\"B\":\"bob\"}"
svetlyak40wt commented 6 years ago

Does somebody have ideas how to fix it?

svetlyak40wt commented 6 years ago

Guys?

rudolph-miller commented 6 years ago

I will take a look at this issue in the next week or two. :octocat:

svetlyak40wt commented 6 years ago

Great! Thank you!

svetlyak40wt commented 6 years ago

Hi Rudolph. Are there any news here?

svetlyak40wt commented 6 years ago

Rudolph, if you don't have time for this issue, please, tell me and may I'll try to solve it myself and will send a pull.

svetlyak40wt commented 5 years ago

This issues was closed half year before by pull https://github.com/Rudolph-Miller/jonathan/pull/56

Thanks to https://12forks.com MVP for pointing to this stale issue!