Commit Graph

23 Commits (f140d48e24aa8ed3a1ca57798f36a542db8bcfc7)

Author SHA1 Message Date
John Benediktsson ca03896d74 more test IN: cleanup. 2018-02-15 09:20:01 -08:00
Benjamin Pollack efd22a668f Import a few extra JSON tests from Jansson
Fixes #1189
2016-03-05 07:03:12 -08:00
Doug Coleman abb8bd74b9 json.reader: Fix json reader for empty files to parse as H{ }. Add path>json word.
Rename read-jsons
2015-08-03 12:23:08 -07:00
John Benediktsson 663fba1d7d json.reader: fix segfault when parsing non-JSON documents. 2015-07-28 18:10:24 -07:00
Doug Coleman 1fcf96cada factor: remove """ string syntax for now. there are HEREDOC:, STRING:, escaping \", and something else soon. 2015-07-25 22:59:56 -07:00
Doug Coleman 40892c0302 tests: prefer ${ } instead of 1array 2015-07-02 14:56:14 -07:00
Doug Coleman 59f3b1ea57 Revert "factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!"
Needs a bit more work.

This reverts commit 7e54cc2824.
2015-07-02 13:47:06 -07:00
Doug Coleman 7e54cc2824 factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool! 2015-07-02 11:36:08 -07:00
Doug Coleman 999aa7c897 factor: clean up spaces in -tests files 2015-07-02 10:34:01 -07:00
Jon Harper 5ed3aef603 json.reader: read Infinity, -Infinity and NaN 2015-06-10 22:51:38 -07:00
Jon Harper 496ff53f22 json.reader: read UTF-16 surrogate pairs 2015-06-10 22:51:38 -07:00
John Benediktsson d83231a08a json: better support for escaped strings. 2014-11-27 14:52:18 -08:00
Joe Groff 943596575a use radix literals 2011-11-23 19:03:40 -08:00
Joe Groff b9c5c2e02c json.reader: factor read-jsons from json> 2010-06-03 13:11:47 -07:00
Alec Berryman 1a1487d11c json reader: correctly handle empty objects in objects
Attempting to parse { "foo" : {} } previously resulted in an error.
(close-hash) expected to consolidate an object into the values of the
containing object (in the first line of code).  While there is none in
the case of the empty hash, the structure of the accumulator looked like
it contained an unconsolidated object, so it folded the values into the
keys and got very confused.
2009-12-27 01:29:12 +13:00
Doug Coleman eceed177d6 replace usages of <" with """ 2009-09-20 22:42:40 -05:00
Philipp Winkler 3604535687 Fix a error parsing out nested arrays. 2009-06-06 20:49:44 -07:00
Philipp Winkler 7922628abb Add a hand parser. Improves speed from 23 seconds to 0.03 seconds when parsing a 123Kb string. 2009-06-04 11:25:33 -07:00
Slava Pestov e313988bf0 json.writer now converts ratios to floats 2008-11-15 03:07:55 -06:00
Peter Burns a4cecaaf40 swap drop === nip 2008-11-08 13:45:45 -08:00
Peter Burns 64cdabf57a A bit more refactoring and testing of json.reader 2008-11-08 12:08:58 -08:00
Peter Burns 706da24b8c Refactored json.reader, added a couple more unit tests, no more rationals 2008-11-07 20:00:19 -08:00
Slava Pestov 724fae53e9 Move web framework to basis 2008-09-04 18:15:13 -05:00