Commit Graph

6 Commits

Author SHA1 Message Date
Danny Yoo
7627e4c47e Add tests for regexp match to check for word break. 2013-01-15 16:05:43 -07:00
Danny Yoo
2051d42034 Add more JSON tests for embedded quotes, backslashes, and errors. 2013-01-15 15:59:18 -07:00
Eli Barzilay
73526b449b Fix json treatment of eof, plus tests.
(Also, no need for a keyword in the interna function.)
2012-10-05 11:48:31 -04:00
Carl Eastlund
bc681836bc Updating read-json to produce eof when appropriate. 2012-10-02 13:46:31 -04:00
Eli Barzilay
540213236a Major code revision for the json library.
* Modernize, improve, reformat, reorganize, etc.

* Use 'null as the default translation for json `null'.  Add keyword
  `#:null' arguments to control it, and a `json-null' parameter to
  change the default.  (Note that there is no ambiguity: symbols are
  used in hash keys, and JSON restricts them to always be strings, so
  `null' can never be a hash key.)

* Properly decode double \u-escape sequences (as UTF-16 surrogate
  pairs).

* Add a keyword option to do more string encoding of all non-ASCII
  characters.

* Rename `json->jsexpr' (and other way) to `string->jsexpr'.  This is
  because (a) after using it for a while I still can't remember which
  side is which and a `string' in the name makes it clear, (b) it
  follows the similar `xexpr' functions.
2012-03-13 10:29:14 -04:00
Eli Barzilay
a4ba7c8ebc Some semi-quick tests for the json code.
(With some items that need to be done.)
2012-03-13 10:29:14 -04:00