/* Create an instance of a json from a pool.  */
static json_t * poolAlloc(jsonPool_t *pool)
/* Create an instance of a json from a pool.  */
static json_t * poolAlloc(jsonPool_t *pool)
{
    jsonStaticPool_t *spool = json_serviceOf(pool, jsonStaticPool_t, pool);
    if (spool->nextFree >= spool->qty)
        return 0;
    return spool->mem + spool->nextFree++;
}