Ticket #291 (closed defect: fixed)

Opened 12 years ago

Last modified 11 years ago

skip whitespace

Reported by: fjl Owned by: dherman
Priority: major Milestone:
Component: dherman/json.plt Keywords:
Cc: Version: (3 0)
Racket Version: 5.0


parse-json fails when whitespace precedes the input.
please fix this by modifying read-json like:

(define (read-json [port (current-input-port)])
  (skip-whitespace port)
  (case (peek-char port)
    [(#\{) (read/hash port)]

Change History

Changed 11 years ago by dherman

  • status changed from new to closed
  • resolution set to fixed

Fixed and updated.


Note: See TracTickets for help on using tickets.