Ticket #291 (closed defect: fixed)
skip whitespace
Reported by: | fjl | Owned by: | dherman |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | dherman/json.plt | Keywords: | |
Cc: | Version: | (3 0) | |
Racket Version: | 5.0 |
Description
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
Note: See
TracTickets for help on using
tickets.