On Thu, 7 Apr 2016, Riccardo (Jack) Lucchetti wrote:
On Wed, 6 Apr 2016, Allin Cottrell wrote:
> BTW, I think we have by now accumulated more than enough bug-fixes to
> justify a new release. Anyone have reason why we should wait?
Well, the script below provokes a segfault (not nice); I've known about it
for a while, but I'd always thought I'd find some time to look into it myself
before using up Allin's time. However, since you ask...
<hansl>
clear
string jst = sprintf("{\"STR\": \"42\", \"ARR\": [ 11,
22 ] , \"DARR\":
[[\"foo\", 111], [\"bar\", 222]] }")
print jst
a = jsonget(jst, "$.STR")
print a
b = jsonget(jst, "$.ARR[0]")
print b
c = jsonget(jst, "$.ARR")
print c
d = jsonget(jst, "$.DARR[0][1]")
print d
# ok so far; now, boom!
e = jsonget(jst, "$.DARR[0]")
print e
</hansl>
Thanks, that's now fixed. I think our json-glib interface should now
be pretty much bulletproof.
Allin