/* Add a property to a JSON object or array.  */
static void add(json_t *obj, json_t *property)
/* Add a property to a JSON object or array.  */
static void add(json_t *obj, json_t *property)
{
    property->sibling = 0;
    if (!obj->u.c.child)
    {
        obj->u.c.child      = property;
        obj->u.c.last_child = property;
    }
    else
    {
        obj->u.c.last_child->sibling = property;
        obj->u.c.last_child          = property;
    }
}