Welcome to the CHICKEN Scheme pasting service

Reading many JSON objects from an input port with medea added by DerGuteMoritz on Wed Feb 25 20:11:01 2015

(define json
  "{\"foo\":123}
   {\"bar\":999}")

(call-with-input-string json
  (lambda (in)
    (let loop ((in in) (result '()))
      (receive (object remainder)
        (read-json in consume-trailing-whitespace: #f chunk-size: (* 5 1024))
        (if object
            (loop remainder (cons object result))
            result)))))

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Which module provides `get-environment-variable'?
Visually impaired? Let me spell it for you (wav file) download WAV