Ticket #291 (closed defect: fixed)

Opened 4 years ago

Last modified 2 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

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

Changed 2 years ago by dherman

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

Fixed and updated.

Dave

Note: See TracTickets for help on using tickets.