Monkey Man Rewrite Analyzer says my rule will trigger but it doesn’t [closed]

Honestly, can not debug your code, but this one works:

function register_crr_jsonwebservice( $wp_rewrite ) {            
    //Add the rewrite rule for this specific json controller
    add_rewrite_tag( '%ticket%', '([a-zA-Z0-9]+)');
    $wp_rewrite->rules = array(
        'cjson/fullticket/?([a-zA-Z0-9]{1,})/?$' => $wp_rewrite->index . "?page_id=243&ticket=".$matches[1]
    ) + $wp_rewrite->rules;
} 

add_action( 'generate_rewrite_rules', 'register_crr_jsonwebservice' );

Do not call flush_rewrite_rules(); from this function – will lead to an error. And maybe add_rewrite_tag will have to be caled from separate function on init – have’t tested that.