From 402c13eb3d33f759c822b901f30b8829fc33d998 Mon Sep 17 00:00:00 2001 From: Baptiste Lepilleur Date: Tue, 27 Apr 2010 16:37:50 +0000 Subject: [PATCH] - added unit test and roadmap for handling of escape sequence "\/" --- doc/roadmap.dox | 6 +++++- test/data/test_string_03.expected | 1 + test/data/test_string_03.json | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 test/data/test_string_03.expected create mode 100644 test/data/test_string_03.json diff --git a/doc/roadmap.dox b/doc/roadmap.dox index d38ebe8..1ec0ab6 100644 --- a/doc/roadmap.dox +++ b/doc/roadmap.dox @@ -26,6 +26,10 @@ - Enforce only object or array as root element - Disable comment support - Get jsonchecker failing tests to pass in strict mode + \section ms_writer Writter control + Provides more control to determine how specific items are serialized when JSON allow choice: + - Optionally allow escaping of non-ASCII characters using unicode escape sequence "\\u". + - Optionally allow escaping of "/" using "\/". \section ms_separation Expose json reader/writer API that do not impose using Json::Value. Some typical use-case involve an application specific structure to/from a JSON document. - Event base parser to allow unserializing a Json document directly in datastructure instead of @@ -35,7 +39,7 @@ - Provides an event based parser. Should allow pulling & skipping events for ease of use. - Provides a JSON document builder: fast only. \section ms_perfo Performance tuning - - Provides support for static property name definition avoiding allocation + - Provides support for static property name definition avoiding allocation - Static property dictionnary can be provided to JSON reader - Performance scenario & benchmarking */ diff --git a/test/data/test_string_03.expected b/test/data/test_string_03.expected new file mode 100644 index 0000000..6ed627a --- /dev/null +++ b/test/data/test_string_03.expected @@ -0,0 +1 @@ +.="http://jsoncpp.sourceforge.net/" \ No newline at end of file diff --git a/test/data/test_string_03.json b/test/data/test_string_03.json new file mode 100644 index 0000000..f0a220f --- /dev/null +++ b/test/data/test_string_03.json @@ -0,0 +1 @@ +"http:\/\/jsoncpp.sourceforge.net\/"