in src/ujdecode.c [201:221]
static void objectAddKey(void* context, JSOBJ obj, JSOBJ name, JSOBJ value)
{
struct DecoderState *ds = context;
ObjectItem *oi = (ObjectItem *) obj;
KeyPair *kp = (KeyPair *) alloc(ds, sizeof(KeyPair));
kp->next = NULL;
kp->name = (StringItem *) name;
kp->value = (Item *) value;
if (oi->tail)
{
oi->tail->next = kp;
}
else
{
oi->head = kp;
}
oi->tail = kp;
}