WRITE_JSON_ELEMENT(ArrEnd) {
    ctx->depth--; //decrease depth
    ctx->commaNeeded[ctx->depth] = true;
    return writeChar(ctx, ']');
}
WRITE_JSON_ELEMENT(ArrEnd) {
    ctx->depth--;  
    ctx->commaNeeded[ctx->depth] = true;
    return writeChar(ctx, ']');
}