Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

S-exp to JSON and back

Name: Anonymous 2012-11-10 7:02

How do you transform/encode a generic s-exp to JSON and back?

inb4 "very carefully."

Name: Anonymous 2012-11-10 9:16

>>8
Any Lisp/Scheme; I'm asking generally. JSON hash objects can be decoded as lists in server side lisp. But what datatype in Lisp do I use to represent JSON hash objects? I'm asking this in the context of a function implementation:

(define (to-json exp) ...)


How would the above function then know when to treat an s-exp as a JSON array or hash?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List