On Thu, 7 Apr 2016, Allin Cottrell wrote:
Having fixed some problems with jsonget() lately, I have one more
question:
I'm not sure exactly when we should flag an error versus no error but return
an empty string.
If we get a duff json string on which json-glib chokes, that's obviously an
error. And I think getting a node of a type we can't
handle (not a string, not numeric -- if that's ever actually seen) should
also produce an error. But what about no match to the query, or a match that
gives a null node?
Since Jack seems to have a good stock of examples -- and/or a good
imagination for constructing them -- maybe he could experiment a little and
see if we're arguably doing the wrong thing under certain conditions.
I've already started some work on this.
Nothing to stop new release for, though, let's go ahead.
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------