diff options
author | Emmanuele Bassi <ebassi@openedhand.com> | 2007-09-21 11:54:40 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@openedhand.com> | 2007-09-21 11:54:40 +0100 |
commit | d98d8c3d245192abe6ec5a531c9d0d678b07d061 (patch) | |
tree | 8e30d2694dc9f9ac94c3973fd9fd7276199445c1 /json-glib/json-array.c | |
parent | cd1040e2fb6f6da50aaf72017746b33234c39704 (diff) | |
download | json-glib-d98d8c3d245192abe6ec5a531c9d0d678b07d061.tar.gz |
Add stubs to JsonParser for actually parsing a JSON stream
Initial commit for getting JsonParser to work. Because GScanner API
is old and mostly sucks, we need to do some magic with signals.
If json_parser_load_from_data() fails, the passed GError will be set
with a JSON_PARSER_ERROR code and message; unfortunately, we can't get
the nice error message out of GScanner. We can, however, override the
default message handler and make it emit a signal on the JsonParser
object.
So, to make a long story short: the GError passed to the load_from_data()
method is filled with a short error message; the *real* error message
is passed to the ::error signal handlers so they can actually use it.
GScanner should really get a way to retrieve the last error message.
Diffstat (limited to 'json-glib/json-array.c')
0 files changed, 0 insertions, 0 deletions