Tcl Library Source Code

Check-in [af6919a548]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Moved the larger test cases and data into separate files, less quoting that way. Added test case for the escape-able characters. Added test cases for invalid json. Shifted the json generating procedures to the common file, making them shared between Tcl and C implementations. Added a benchmark suite, using the test cases in the files as input.
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | ak-bug-6efa4f571af052-jsonc
Files: files | file ages | folders
SHA1: af6919a548bd1a4f26c80b565be4e08a5146de50
User & Date: andreask 2013-12-11 21:07:44.674
Original Comment: Moved the larger test cases and data into separate files, less quiting that way. Added test case for the escape-able characters. Added test cases for invalid json. Shifted the json generating procedures to the common file, making them shared between Tcl and C implementations. Added a benchmark suite, using the test cases in the files as input.
Context
2013-12-11
22:25
Fixed buglets which slipped through in previous commit. check-in: 1c1271bd98 user: andreask tags: ak-bug-6efa4f571af052-jsonc
21:07
Moved the larger test cases and data into separate files, less quoting that way. Added test case for the escape-able characters. Added test cases for invalid json. Shifted the json generating procedures to the common file, making them shared between Tcl and C implementations. Added a benchmark suite, using the test cases in the files as input. check-in: af6919a548 user: andreask tags: ak-bug-6efa4f571af052-jsonc
01:29
Implemented many-json2dict and validate over json-c. Test cases for many-json2dict reactivated, passing. New cases for validate, passing. Should add test cases for invalid json input. check-in: 08ac1421ee user: andreask tags: ak-bug-6efa4f571af052-jsonc
Changes
Unified Diff Side-by-Side Diff Patch
Added modules/json/json.bench.
Changes to modules/json/json.tcl.
Changes to modules/json/json.testsuite.
Changes to modules/json/json_tcl.tcl.
Changes to modules/json/jsonc.tcl.
Added modules/json/test-data/array.json.
Added modules/json/test-data/array.result.
Added modules/json/test-data/array.sort.
Added modules/json/test-data/glossary.json.
Added modules/json/test-data/glossary.result.
Added modules/json/test-data/glossary.sort.
Added modules/json/test-data/menu.json.
Added modules/json/test-data/menu.result.
Added modules/json/test-data/menu.sort.
Added modules/json/test-data/menu2.json.
Added modules/json/test-data/menu2.result.
Added modules/json/test-data/menu2.sort.
Added modules/json/test-data/widget.json.
Added modules/json/test-data/widget.result.
Added modules/json/test-data/widget.sort.
Changes to modules/json/test_support.tcl.