commit 8935b7db1f25818eff3bb16cbe2b8b2981d4e195 Author: Emmanuele Bassi Date: Fri Mar 19 17:04:54 2010 +0000 Release 0.10.4 NEWS | 7 +++++++ configure.ac | 2 +- 2 files changed, 8 insertions(+), 1 deletions(-) commit a3ac934acabe0bf5e03dc5c22c51f0bd8fa056c2 Author: Emmanuele Bassi Date: Fri Mar 19 16:59:57 2010 +0000 parser: Refactor the JsonParser logic The array and object parsing logic in JsonParser has clearly exploded beyond control: a simple tightening of the JSON validation almost broke the parser in two. It it is time to... REFACTOR THE CODE! This time, we should be following the JSON state machine and try to do more prediction of the next state based on peeking the next token. The code is fairly cleaner, now; and, most of all, still passes the validation test suite - which is, you know... nice. (cherry picked from commit 08cec3b7c9202007a5abbf548f8d2f1b54d4d0b4) Signed-off-by: Emmanuele Bassi json-glib/json-parser.c | 467 ++++++++++++++++++----------------------------- 1 files changed, 179 insertions(+), 288 deletions(-) commit e2e4c60f9f1b5302f23f08fea9e3882ea5135406 Author: Emmanuele Bassi Date: Thu Mar 18 22:41:14 2010 +0000 JSON-GLib bug tracking system has been moved We are now using bugzilla.gnome.org, since we're already hosted on git.gnome.org. (cherry picked from commit 9d7c58b4fb5edeb8e9413acc9d509447e13962e5) Signed-off-by: Emmanuele Bassi README | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 6b2d50001f2db526c5108a764693a632573c51a0 Author: Emmanuele Bassi Date: Thu Mar 18 17:05:57 2010 +0000 generator: Use %g format for g_ascii_formatd() I should read the documentation for the functions I use: Converts a gdouble to a string, using the '.' as decimal point. To format the number you pass in a printf()-style format string. Allowed conversion specifiers are 'e', 'E', 'f', 'F', 'g' and 'G'. -- from g_ascii_formatd() in GLib's API reference Epic reading fail. (cherry picked from commit f622ee8d8ba54ddea6fbb7311a905ffab7842e8d) Signed-off-by: Emmanuele Bassi json-glib/json-generator.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 7ced197c050f56c2555b9190d648f22e337209b8 Author: Emmanuele Bassi Date: Fri Mar 5 19:23:49 2010 +0000 tests: Add another trailing comma invalid test (cherry picked from commit 88ac0d5111eb528e4c396e4c169ceee4fb046e62) Signed-off-by: Emmanuele Bassi tests/test-parser.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 3c239e0d75a7246a2a3f75358ad662cefdb0960d Author: Emmanuele Bassi Date: Mon Mar 1 17:42:41 2010 +0000 tests: Add negative tests Verify that invalid JSON will trigger a parser error. (cherry picked from commit c22c1151e418af9506547804d4bc9fddb60bc0f1) Signed-off-by: Emmanuele Bassi tests/test-parser.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 53 insertions(+), 0 deletions(-) commit 29881f03468db08bfb404cfcd5b61b4cdc419a87 Author: Emmanuele Bassi Date: Mon Mar 1 17:41:14 2010 +0000 parser: Improve strictness Apparently, some breakage crept in JsonParser which allowed invalid JSON to actually pass. For instance: trailing and missing commas, invalid barewords and wrong array and object closing braces. (cherry picked from commit 26668fe238a52a7fd8374f409fc277aaa8efa826) Signed-off-by: Emmanuele Bassi json-glib/json-parser.c | 117 +++++++++++++++++++++++++++++++---------------- 1 files changed, 78 insertions(+), 39 deletions(-) commit 84b68de38bab2d4537a6eb77c8df2a1288cef8ca Author: Emmanuele Bassi Date: Fri Feb 26 14:07:47 2010 +0000 Post-release version bump to 0.10.3 configure.ac | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)