Chilkat Online Tools

GetRuleGroup unicodeC Example

AWS WAFV2

#include <C_CkRestW.h>
#include <C_CkAuthAwsW.h>
#include <C_CkJsonObjectW.h>
#include <C_CkStringBuilderW.h>

void ChilkatSample(void)
    {
    HCkRestW rest;
    BOOL success;
    HCkAuthAwsW authAws;
    HCkJsonObjectW json;
    HCkStringBuilderW sbRequestBody;
    HCkStringBuilderW sbResponseBody;
    int respStatusCode;
    HCkJsonObjectW jResp;
    const wchar_t *CustomResponseBodyKey;
    int ResponseCode;
    int ImmunityTime;
    int Priority;
    const wchar_t *OversizeHandling;
    const wchar_t *MatchScope;
    const wchar_t *CookiesOversizeHandling;
    const wchar_t *HeadersMatchScope;
    const wchar_t *HeadersOversizeHandling;
    const wchar_t *InvalidFallbackBehavior;
    const wchar_t *JsonBodyMatchScope;
    const wchar_t *JsonBodyOversizeHandling;
    const wchar_t *SingleHeaderName;
    const wchar_t *SingleQueryArgumentName;
    const wchar_t *PositionalConstraint;
    int SearchString;
    const wchar_t *FallbackBehavior;
    const wchar_t *HeaderName;
    const wchar_t *IPSetReferenceStatementARN;
    const wchar_t *IPSetForwardedIPConfigFallbackBehavior;
    const wchar_t *IPSetForwardedIPConfigHeaderName;
    const wchar_t *Position;
    const wchar_t *Key;
    const wchar_t *Scope;
    const wchar_t *ManagedRuleGroupStatementName;
    const wchar_t *ScopeDownStatement;
    const wchar_t *VendorName;
    const wchar_t *Version;
    const wchar_t *Statement;
    const wchar_t *AggregateKeyType;
    const wchar_t *ForwardedIPConfigFallbackBehavior;
    const wchar_t *ForwardedIPConfigHeaderName;
    int Limit;
    const wchar_t *RateBasedStatementScopeDownStatement;
    const wchar_t *BodyOversizeHandling;
    const wchar_t *CookiesMatchScope;
    const wchar_t *JsonBodyInvalidFallbackBehavior;
    const wchar_t *RegexString;
    const wchar_t *RegexPatternSetReferenceStatementARN;
    const wchar_t *RuleGroupReferenceStatementARN;
    const wchar_t *ComparisonOperator;
    int Size;
    int VisibilityConfigCloudWatchMetricsEnabled;
    const wchar_t *VisibilityConfigMetricName;
    int VisibilityConfigSampledRequestsEnabled;
    int j;
    int count_j;
    const wchar_t *Value;
    const wchar_t *strVal;
    const wchar_t *v_Type;
    const wchar_t *LoginPath;
    const wchar_t *Identifier;
    const wchar_t *PayloadType;
    const wchar_t *UsernameFieldIdentifier;
    const wchar_t *LockToken;
    const wchar_t *ARN;
    int Capacity;
    const wchar_t *Content;
    const wchar_t *ContentType;
    const wchar_t *Description;
    const wchar_t *Id;
    const wchar_t *LabelNamespace;
    const wchar_t *Name;
    int CloudWatchMetricsEnabled;
    const wchar_t *MetricName;
    int SampledRequestsEnabled;
    int i;
    int count_i;

    // This example requires the Chilkat API to have been previously unlocked.
    // See Global Unlock Sample for sample code.

    rest = CkRestW_Create();

    authAws = CkAuthAwsW_Create();
    CkAuthAwsW_putAccessKey(authAws,L"AWS_ACCESS_KEY");
    CkAuthAwsW_putSecretKey(authAws,L"AWS_SECRET_KEY");

    // Don't forget to change the region to your particular region. (Also make the same change in the call to Connect below.)
    CkAuthAwsW_putRegion(authAws,L"us-west-2");
    CkAuthAwsW_putServiceName(authAws,L"wafv2");
    // SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
    CkRestW_SetAuthAws(rest,authAws);

    // URL: https://wafv2.us-west-2.amazonaws.com/
    // Use the same region as specified above.
    success = CkRestW_Connect(rest,L"wafv2.us-west-2.amazonaws.com",443,TRUE,TRUE);
    if (success != TRUE) {
        wprintf(L"ConnectFailReason: %d\n",CkRestW_getConnectFailReason(rest));
        wprintf(L"%s\n",CkRestW_lastErrorText(rest));
        CkRestW_Dispose(rest);
        CkAuthAwsW_Dispose(authAws);
        return;
    }

    // The following code creates the JSON request body.
    // The JSON created by this code is shown below.

    // Use this online tool to generate code from sample JSON:
    // Generate Code to Create JSON

    json = CkJsonObjectW_Create();
    CkJsonObjectW_UpdateString(json,L"ARN",L"string");
    CkJsonObjectW_UpdateString(json,L"Id",L"string");
    CkJsonObjectW_UpdateString(json,L"Name",L"string");
    CkJsonObjectW_UpdateString(json,L"Scope",L"string");

    // The JSON request body created by the above code:

    // {
    //   "ARN": "string",
    //   "Id": "string",
    //   "Name": "string",
    //   "Scope": "string"
    // }

    CkRestW_AddHeader(rest,L"Content-Type",L"application/x-amz-json-1.1");
    CkRestW_AddHeader(rest,L"X-Amz-Target",L"AWSWAF_20190729.GetRuleGroup");

    sbRequestBody = CkStringBuilderW_Create();
    CkJsonObjectW_EmitSb(json,sbRequestBody);
    sbResponseBody = CkStringBuilderW_Create();
    success = CkRestW_FullRequestSb(rest,L"POST",L"/",sbRequestBody,sbResponseBody);
    if (success != TRUE) {
        wprintf(L"%s\n",CkRestW_lastErrorText(rest));
        CkRestW_Dispose(rest);
        CkAuthAwsW_Dispose(authAws);
        CkJsonObjectW_Dispose(json);
        CkStringBuilderW_Dispose(sbRequestBody);
        CkStringBuilderW_Dispose(sbResponseBody);
        return;
    }

    respStatusCode = CkRestW_getResponseStatusCode(rest);
    wprintf(L"response status code = %d\n",respStatusCode);
    if (respStatusCode != 200) {
        wprintf(L"Response Header:\n");
        wprintf(L"%s\n",CkRestW_responseHeader(rest));
        wprintf(L"Response Body:\n");
        wprintf(L"%s\n",CkStringBuilderW_getAsString(sbResponseBody));
        CkRestW_Dispose(rest);
        CkAuthAwsW_Dispose(authAws);
        CkJsonObjectW_Dispose(json);
        CkStringBuilderW_Dispose(sbRequestBody);
        CkStringBuilderW_Dispose(sbResponseBody);
        return;
    }

    jResp = CkJsonObjectW_Create();
    CkJsonObjectW_LoadSb(jResp,sbResponseBody);

    // The following code parses the JSON response.
    // A sample JSON response is shown below the sample code.

    // Use this online tool to generate parsing code from sample JSON:
    // Generate Parsing Code from JSON

    // Chilkat functions returning "const char *" return a pointer to temporary internal memory owned and managed by Chilkat.
    // See this example explaining how this memory should be used: const char * functions.

    LockToken = CkJsonObjectW_stringOf(jResp,L"LockToken");
    ARN = CkJsonObjectW_stringOf(jResp,L"RuleGroup.ARN");
    Capacity = CkJsonObjectW_IntOf(jResp,L"RuleGroup.Capacity");
    Content = CkJsonObjectW_stringOf(jResp,L"RuleGroup.CustomResponseBodies.string.Content");
    ContentType = CkJsonObjectW_stringOf(jResp,L"RuleGroup.CustomResponseBodies.string.ContentType");
    Description = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Description");
    Id = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Id");
    LabelNamespace = CkJsonObjectW_stringOf(jResp,L"RuleGroup.LabelNamespace");
    Name = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Name");
    CloudWatchMetricsEnabled = CkJsonObjectW_IntOf(jResp,L"RuleGroup.VisibilityConfig.CloudWatchMetricsEnabled");
    MetricName = CkJsonObjectW_stringOf(jResp,L"RuleGroup.VisibilityConfig.MetricName");
    SampledRequestsEnabled = CkJsonObjectW_IntOf(jResp,L"RuleGroup.VisibilityConfig.SampledRequestsEnabled");
    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.AvailableLabels");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        Name = CkJsonObjectW_stringOf(jResp,L"RuleGroup.AvailableLabels[i].Name");
        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.ConsumedLabels");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        Name = CkJsonObjectW_stringOf(jResp,L"RuleGroup.ConsumedLabels[i].Name");
        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        CustomResponseBodyKey = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Action.Block.CustomResponse.CustomResponseBodyKey");
        ResponseCode = CkJsonObjectW_IntOf(jResp,L"RuleGroup.Rules[i].Action.Block.CustomResponse.ResponseCode");
        ImmunityTime = CkJsonObjectW_IntOf(jResp,L"RuleGroup.Rules[i].CaptchaConfig.ImmunityTimeProperty.ImmunityTime");
        Name = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Name");
        Priority = CkJsonObjectW_IntOf(jResp,L"RuleGroup.Rules[i].Priority");
        OversizeHandling = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Body.OversizeHandling");
        MatchScope = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Cookies.MatchScope");
        CookiesOversizeHandling = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Cookies.OversizeHandling");
        HeadersMatchScope = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Headers.MatchScope");
        HeadersOversizeHandling = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Headers.OversizeHandling");
        InvalidFallbackBehavior = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.JsonBody.InvalidFallbackBehavior");
        JsonBodyMatchScope = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.JsonBody.MatchScope");
        JsonBodyOversizeHandling = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.JsonBody.OversizeHandling");
        SingleHeaderName = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.SingleHeader.Name");
        SingleQueryArgumentName = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.SingleQueryArgument.Name");
        PositionalConstraint = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.ByteMatchStatement.PositionalConstraint");
        SearchString = CkJsonObjectW_IntOf(jResp,L"RuleGroup.Rules[i].Statement.ByteMatchStatement.SearchString");
        FallbackBehavior = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.GeoMatchStatement.ForwardedIPConfig.FallbackBehavior");
        HeaderName = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.GeoMatchStatement.ForwardedIPConfig.HeaderName");
        IPSetReferenceStatementARN = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.IPSetReferenceStatement.ARN");
        IPSetForwardedIPConfigFallbackBehavior = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.IPSetReferenceStatement.IPSetForwardedIPConfig.FallbackBehavior");
        IPSetForwardedIPConfigHeaderName = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.IPSetReferenceStatement.IPSetForwardedIPConfig.HeaderName");
        Position = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.IPSetReferenceStatement.IPSetForwardedIPConfig.Position");
        Key = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.LabelMatchStatement.Key");
        Scope = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.LabelMatchStatement.Scope");
        ManagedRuleGroupStatementName = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.Name");
        ScopeDownStatement = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ScopeDownStatement");
        VendorName = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.VendorName");
        Version = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.Version");
        Statement = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.NotStatement.Statement");
        AggregateKeyType = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RateBasedStatement.AggregateKeyType");
        ForwardedIPConfigFallbackBehavior = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RateBasedStatement.ForwardedIPConfig.FallbackBehavior");
        ForwardedIPConfigHeaderName = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RateBasedStatement.ForwardedIPConfig.HeaderName");
        Limit = CkJsonObjectW_IntOf(jResp,L"RuleGroup.Rules[i].Statement.RateBasedStatement.Limit");
        RateBasedStatementScopeDownStatement = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RateBasedStatement.ScopeDownStatement");
        BodyOversizeHandling = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Body.OversizeHandling");
        CookiesMatchScope = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Cookies.MatchScope");
        CookiesOversizeHandling = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Cookies.OversizeHandling");
        HeadersMatchScope = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Headers.MatchScope");
        HeadersOversizeHandling = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Headers.OversizeHandling");
        JsonBodyInvalidFallbackBehavior = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.JsonBody.InvalidFallbackBehavior");
        JsonBodyMatchScope = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.JsonBody.MatchScope");
        JsonBodyOversizeHandling = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.JsonBody.OversizeHandling");
        SingleHeaderName = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.SingleHeader.Name");
        SingleQueryArgumentName = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.SingleQueryArgument.Name");
        RegexString = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexMatchStatement.RegexString");
        RegexPatternSetReferenceStatementARN = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.ARN");
        BodyOversizeHandling = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Body.OversizeHandling");
        CookiesMatchScope = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Cookies.MatchScope");
        CookiesOversizeHandling = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Cookies.OversizeHandling");
        HeadersMatchScope = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Headers.MatchScope");
        HeadersOversizeHandling = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Headers.OversizeHandling");
        JsonBodyInvalidFallbackBehavior = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.JsonBody.InvalidFallbackBehavior");
        JsonBodyMatchScope = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.JsonBody.MatchScope");
        JsonBodyOversizeHandling = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.JsonBody.OversizeHandling");
        SingleHeaderName = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.SingleHeader.Name");
        SingleQueryArgumentName = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.SingleQueryArgument.Name");
        RuleGroupReferenceStatementARN = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RuleGroupReferenceStatement.ARN");
        ComparisonOperator = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SizeConstraintStatement.ComparisonOperator");
        BodyOversizeHandling = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Body.OversizeHandling");
        CookiesMatchScope = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Cookies.MatchScope");
        CookiesOversizeHandling = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Cookies.OversizeHandling");
        HeadersMatchScope = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Headers.MatchScope");
        HeadersOversizeHandling = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Headers.OversizeHandling");
        JsonBodyInvalidFallbackBehavior = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.JsonBody.InvalidFallbackBehavior");
        JsonBodyMatchScope = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.JsonBody.MatchScope");
        JsonBodyOversizeHandling = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.JsonBody.OversizeHandling");
        SingleHeaderName = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.SingleHeader.Name");
        SingleQueryArgumentName = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.SingleQueryArgument.Name");
        Size = CkJsonObjectW_IntOf(jResp,L"RuleGroup.Rules[i].Statement.SizeConstraintStatement.Size");
        BodyOversizeHandling = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Body.OversizeHandling");
        CookiesMatchScope = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Cookies.MatchScope");
        CookiesOversizeHandling = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Cookies.OversizeHandling");
        HeadersMatchScope = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Headers.MatchScope");
        HeadersOversizeHandling = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Headers.OversizeHandling");
        JsonBodyInvalidFallbackBehavior = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.JsonBody.InvalidFallbackBehavior");
        JsonBodyMatchScope = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.JsonBody.MatchScope");
        JsonBodyOversizeHandling = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.JsonBody.OversizeHandling");
        SingleHeaderName = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.SingleHeader.Name");
        SingleQueryArgumentName = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.SingleQueryArgument.Name");
        BodyOversizeHandling = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Body.OversizeHandling");
        CookiesMatchScope = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Cookies.MatchScope");
        CookiesOversizeHandling = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Cookies.OversizeHandling");
        HeadersMatchScope = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Headers.MatchScope");
        HeadersOversizeHandling = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Headers.OversizeHandling");
        JsonBodyInvalidFallbackBehavior = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.JsonBody.InvalidFallbackBehavior");
        JsonBodyMatchScope = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.JsonBody.MatchScope");
        JsonBodyOversizeHandling = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.JsonBody.OversizeHandling");
        SingleHeaderName = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.SingleHeader.Name");
        SingleQueryArgumentName = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.SingleQueryArgument.Name");
        VisibilityConfigCloudWatchMetricsEnabled = CkJsonObjectW_IntOf(jResp,L"RuleGroup.Rules[i].VisibilityConfig.CloudWatchMetricsEnabled");
        VisibilityConfigMetricName = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].VisibilityConfig.MetricName");
        VisibilityConfigSampledRequestsEnabled = CkJsonObjectW_IntOf(jResp,L"RuleGroup.Rules[i].VisibilityConfig.SampledRequestsEnabled");
        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Action.Allow.CustomRequestHandling.InsertHeaders");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            Name = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Action.Allow.CustomRequestHandling.InsertHeaders[j].Name");
            Value = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Action.Allow.CustomRequestHandling.InsertHeaders[j].Value");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Action.Block.CustomResponse.ResponseHeaders");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            Name = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Action.Block.CustomResponse.ResponseHeaders[j].Name");
            Value = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Action.Block.CustomResponse.ResponseHeaders[j].Value");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Action.Captcha.CustomRequestHandling.InsertHeaders");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            Name = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Action.Captcha.CustomRequestHandling.InsertHeaders[j].Name");
            Value = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Action.Captcha.CustomRequestHandling.InsertHeaders[j].Value");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Action.Count.CustomRequestHandling.InsertHeaders");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            Name = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Action.Count.CustomRequestHandling.InsertHeaders[j].Name");
            Value = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Action.Count.CustomRequestHandling.InsertHeaders[j].Value");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].OverrideAction.Count.CustomRequestHandling.InsertHeaders");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            Name = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].OverrideAction.Count.CustomRequestHandling.InsertHeaders[j].Name");
            Value = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].OverrideAction.Count.CustomRequestHandling.InsertHeaders[j].Value");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].RuleLabels");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            Name = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].RuleLabels[j].Name");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.AndStatement.Statements");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.AndStatement.Statements[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.ByteMatchStatement.TextTransformations");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            Priority = CkJsonObjectW_IntOf(jResp,L"RuleGroup.Rules[i].Statement.ByteMatchStatement.TextTransformations[j].Priority");
            v_Type = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.ByteMatchStatement.TextTransformations[j].Type");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.GeoMatchStatement.CountryCodes");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.GeoMatchStatement.CountryCodes[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ExcludedRules");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            Name = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ExcludedRules[j].Name");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ManagedRuleGroupConfigs");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            LoginPath = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ManagedRuleGroupConfigs[j].LoginPath");
            Identifier = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ManagedRuleGroupConfigs[j].PasswordField.Identifier");
            PayloadType = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ManagedRuleGroupConfigs[j].PayloadType");
            UsernameFieldIdentifier = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ManagedRuleGroupConfigs[j].UsernameField.Identifier");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.OrStatement.Statements");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.OrStatement.Statements[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.RegexMatchStatement.TextTransformations");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            Priority = CkJsonObjectW_IntOf(jResp,L"RuleGroup.Rules[i].Statement.RegexMatchStatement.TextTransformations[j].Priority");
            v_Type = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexMatchStatement.TextTransformations[j].Type");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.TextTransformations");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            Priority = CkJsonObjectW_IntOf(jResp,L"RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.TextTransformations[j].Priority");
            v_Type = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.TextTransformations[j].Type");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.RuleGroupReferenceStatement.ExcludedRules");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            Name = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.RuleGroupReferenceStatement.ExcludedRules[j].Name");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.SizeConstraintStatement.TextTransformations");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            Priority = CkJsonObjectW_IntOf(jResp,L"RuleGroup.Rules[i].Statement.SizeConstraintStatement.TextTransformations[j].Priority");
            v_Type = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SizeConstraintStatement.TextTransformations[j].Type");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.SqliMatchStatement.TextTransformations");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            Priority = CkJsonObjectW_IntOf(jResp,L"RuleGroup.Rules[i].Statement.SqliMatchStatement.TextTransformations[j].Priority");
            v_Type = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.SqliMatchStatement.TextTransformations[j].Type");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"RuleGroup.Rules[i].Statement.XssMatchStatement.TextTransformations");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            Priority = CkJsonObjectW_IntOf(jResp,L"RuleGroup.Rules[i].Statement.XssMatchStatement.TextTransformations[j].Priority");
            v_Type = CkJsonObjectW_stringOf(jResp,L"RuleGroup.Rules[i].Statement.XssMatchStatement.TextTransformations[j].Type");
            j = j + 1;
        }

        i = i + 1;
    }

    // A sample JSON response body parsed by the above code:

    // {
    //   "LockToken": "string",
    //   "RuleGroup": {
    //     "ARN": "string",
    //     "AvailableLabels": [
    //       {
    //         "Name": "string"
    //       }
    //     ],
    //     "Capacity": number,
    //     "ConsumedLabels": [
    //       {
    //         "Name": "string"
    //       }
    //     ],
    //     "CustomResponseBodies": {
    //       "string": {
    //         "Content": "string",
    //         "ContentType": "string"
    //       }
    //     },
    //     "Description": "string",
    //     "Id": "string",
    //     "LabelNamespace": "string",
    //     "Name": "string",
    //     "Rules": [
    //       {
    //         "Action": {
    //           "Allow": {
    //             "CustomRequestHandling": {
    //               "InsertHeaders": [
    //                 {
    //                   "Name": "string",
    //                   "Value": "string"
    //                 }
    //               ]
    //             }
    //           },
    //           "Block": {
    //             "CustomResponse": {
    //               "CustomResponseBodyKey": "string",
    //               "ResponseCode": number,
    //               "ResponseHeaders": [
    //                 {
    //                   "Name": "string",
    //                   "Value": "string"
    //                 }
    //               ]
    //             }
    //           },
    //           "Captcha": {
    //             "CustomRequestHandling": {
    //               "InsertHeaders": [
    //                 {
    //                   "Name": "string",
    //                   "Value": "string"
    //                 }
    //               ]
    //             }
    //           },
    //           "Count": {
    //             "CustomRequestHandling": {
    //               "InsertHeaders": [
    //                 {
    //                   "Name": "string",
    //                   "Value": "string"
    //                 }
    //               ]
    //             }
    //           }
    //         },
    //         "CaptchaConfig": {
    //           "ImmunityTimeProperty": {
    //             "ImmunityTime": number
    //           }
    //         },
    //         "Name": "string",
    //         "OverrideAction": {
    //           "Count": {
    //             "CustomRequestHandling": {
    //               "InsertHeaders": [
    //                 {
    //                   "Name": "string",
    //                   "Value": "string"
    //                 }
    //               ]
    //             }
    //           },
    //           "None": {}
    //         },
    //         "Priority": number,
    //         "RuleLabels": [
    //           {
    //             "Name": "string"
    //           }
    //         ],
    //         "Statement": {
    //           "AndStatement": {
    //             "Statements": [
    //               "Statement"
    //             ]
    //           },
    //           "ByteMatchStatement": {
    //             "FieldToMatch": {
    //               "AllQueryArguments": {},
    //               "Body": {
    //                 "OversizeHandling": "string"
    //               },
    //               "Cookies": {
    //                 "MatchPattern": {
    //                   "All": {},
    //                   "ExcludedCookies": [
    //                     "string"
    //                   ],
    //                   "IncludedCookies": [
    //                     "string"
    //                   ]
    //                 },
    //                 "MatchScope": "string",
    //                 "OversizeHandling": "string"
    //               },
    //               "Headers": {
    //                 "MatchPattern": {
    //                   "All": {},
    //                   "ExcludedHeaders": [
    //                     "string"
    //                   ],
    //                   "IncludedHeaders": [
    //                     "string"
    //                   ]
    //                 },
    //                 "MatchScope": "string",
    //                 "OversizeHandling": "string"
    //               },
    //               "JsonBody": {
    //                 "InvalidFallbackBehavior": "string",
    //                 "MatchPattern": {
    //                   "All": {},
    //                   "IncludedPaths": [
    //                     "string"
    //                   ]
    //                 },
    //                 "MatchScope": "string",
    //                 "OversizeHandling": "string"
    //               },
    //               "Method": {},
    //               "QueryString": {},
    //               "SingleHeader": {
    //                 "Name": "string"
    //               },
    //               "SingleQueryArgument": {
    //                 "Name": "string"
    //               },
    //               "UriPath": {}
    //             },
    //             "PositionalConstraint": "string",
    //             "SearchString": blob,
    //             "TextTransformations": [
    //               {
    //                 "Priority": number,
    //                 "Type": "string"
    //               }
    //             ]
    //           },
    //           "GeoMatchStatement": {
    //             "CountryCodes": [
    //               "string"
    //             ],
    //             "ForwardedIPConfig": {
    //               "FallbackBehavior": "string",
    //               "HeaderName": "string"
    //             }
    //           },
    //           "IPSetReferenceStatement": {
    //             "ARN": "string",
    //             "IPSetForwardedIPConfig": {
    //               "FallbackBehavior": "string",
    //               "HeaderName": "string",
    //               "Position": "string"
    //             }
    //           },
    //           "LabelMatchStatement": {
    //             "Key": "string",
    //             "Scope": "string"
    //           },
    //           "ManagedRuleGroupStatement": {
    //             "ExcludedRules": [
    //               {
    //                 "Name": "string"
    //               }
    //             ],
    //             "ManagedRuleGroupConfigs": [
    //               {
    //                 "LoginPath": "string",
    //                 "PasswordField": {
    //                   "Identifier": "string"
    //                 },
    //                 "PayloadType": "string",
    //                 "UsernameField": {
    //                   "Identifier": "string"
    //                 }
    //               }
    //             ],
    //             "Name": "string",
    //             "ScopeDownStatement": "Statement",
    //             "VendorName": "string",
    //             "Version": "string"
    //           },
    //           "NotStatement": {
    //             "Statement": "Statement"
    //           },
    //           "OrStatement": {
    //             "Statements": [
    //               "Statement"
    //             ]
    //           },
    //           "RateBasedStatement": {
    //             "AggregateKeyType": "string",
    //             "ForwardedIPConfig": {
    //               "FallbackBehavior": "string",
    //               "HeaderName": "string"
    //             },
    //             "Limit": number,
    //             "ScopeDownStatement": "Statement"
    //           },
    //           "RegexMatchStatement": {
    //             "FieldToMatch": {
    //               "AllQueryArguments": {},
    //               "Body": {
    //                 "OversizeHandling": "string"
    //               },
    //               "Cookies": {
    //                 "MatchPattern": {
    //                   "All": {},
    //                   "ExcludedCookies": [
    //                     "string"
    //                   ],
    //                   "IncludedCookies": [
    //                     "string"
    //                   ]
    //                 },
    //                 "MatchScope": "string",
    //                 "OversizeHandling": "string"
    //               },
    //               "Headers": {
    //                 "MatchPattern": {
    //                   "All": {},
    //                   "ExcludedHeaders": [
    //                     "string"
    //                   ],
    //                   "IncludedHeaders": [
    //                     "string"
    //                   ]
    //                 },
    //                 "MatchScope": "string",
    //                 "OversizeHandling": "string"
    //               },
    //               "JsonBody": {
    //                 "InvalidFallbackBehavior": "string",
    //                 "MatchPattern": {
    //                   "All": {},
    //                   "IncludedPaths": [
    //                     "string"
    //                   ]
    //                 },
    //                 "MatchScope": "string",
    //                 "OversizeHandling": "string"
    //               },
    //               "Method": {},
    //               "QueryString": {},
    //               "SingleHeader": {
    //                 "Name": "string"
    //               },
    //               "SingleQueryArgument": {
    //                 "Name": "string"
    //               },
    //               "UriPath": {}
    //             },
    //             "RegexString": "string",
    //             "TextTransformations": [
    //               {
    //                 "Priority": number,
    //                 "Type": "string"
    //               }
    //             ]
    //           },
    //           "RegexPatternSetReferenceStatement": {
    //             "ARN": "string",
    //             "FieldToMatch": {
    //               "AllQueryArguments": {},
    //               "Body": {
    //                 "OversizeHandling": "string"
    //               },
    //               "Cookies": {
    //                 "MatchPattern": {
    //                   "All": {},
    //                   "ExcludedCookies": [
    //                     "string"
    //                   ],
    //                   "IncludedCookies": [
    //                     "string"
    //                   ]
    //                 },
    //                 "MatchScope": "string",
    //                 "OversizeHandling": "string"
    //               },
    //               "Headers": {
    //                 "MatchPattern": {
    //                   "All": {},
    //                   "ExcludedHeaders": [
    //                     "string"
    //                   ],
    //                   "IncludedHeaders": [
    //                     "string"
    //                   ]
    //                 },
    //                 "MatchScope": "string",
    //                 "OversizeHandling": "string"
    //               },
    //               "JsonBody": {
    //                 "InvalidFallbackBehavior": "string",
    //                 "MatchPattern": {
    //                   "All": {},
    //                   "IncludedPaths": [
    //                     "string"
    //                   ]
    //                 },
    //                 "MatchScope": "string",
    //                 "OversizeHandling": "string"
    //               },
    //               "Method": {},
    //               "QueryString": {},
    //               "SingleHeader": {
    //                 "Name": "string"
    //               },
    //               "SingleQueryArgument": {
    //                 "Name": "string"
    //               },
    //               "UriPath": {}
    //             },
    //             "TextTransformations": [
    //               {
    //                 "Priority": number,
    //                 "Type": "string"
    //               }
    //             ]
    //           },
    //           "RuleGroupReferenceStatement": {
    //             "ARN": "string",
    //             "ExcludedRules": [
    //               {
    //                 "Name": "string"
    //               }
    //             ]
    //           },
    //           "SizeConstraintStatement": {
    //             "ComparisonOperator": "string",
    //             "FieldToMatch": {
    //               "AllQueryArguments": {},
    //               "Body": {
    //                 "OversizeHandling": "string"
    //               },
    //               "Cookies": {
    //                 "MatchPattern": {
    //                   "All": {},
    //                   "ExcludedCookies": [
    //                     "string"
    //                   ],
    //                   "IncludedCookies": [
    //                     "string"
    //                   ]
    //                 },
    //                 "MatchScope": "string",
    //                 "OversizeHandling": "string"
    //               },
    //               "Headers": {
    //                 "MatchPattern": {
    //                   "All": {},
    //                   "ExcludedHeaders": [
    //                     "string"
    //                   ],
    //                   "IncludedHeaders": [
    //                     "string"
    //                   ]
    //                 },
    //                 "MatchScope": "string",
    //                 "OversizeHandling": "string"
    //               },
    //               "JsonBody": {
    //                 "InvalidFallbackBehavior": "string",
    //                 "MatchPattern": {
    //                   "All": {},
    //                   "IncludedPaths": [
    //                     "string"
    //                   ]
    //                 },
    //                 "MatchScope": "string",
    //                 "OversizeHandling": "string"
    //               },
    //               "Method": {},
    //               "QueryString": {},
    //               "SingleHeader": {
    //                 "Name": "string"
    //               },
    //               "SingleQueryArgument": {
    //                 "Name": "string"
    //               },
    //               "UriPath": {}
    //             },
    //             "Size": number,
    //             "TextTransformations": [
    //               {
    //                 "Priority": number,
    //                 "Type": "string"
    //               }
    //             ]
    //           },
    //           "SqliMatchStatement": {
    //             "FieldToMatch": {
    //               "AllQueryArguments": {},
    //               "Body": {
    //                 "OversizeHandling": "string"
    //               },
    //               "Cookies": {
    //                 "MatchPattern": {
    //                   "All": {},
    //                   "ExcludedCookies": [
    //                     "string"
    //                   ],
    //                   "IncludedCookies": [
    //                     "string"
    //                   ]
    //                 },
    //                 "MatchScope": "string",
    //                 "OversizeHandling": "string"
    //               },
    //               "Headers": {
    //                 "MatchPattern": {
    //                   "All": {},
    //                   "ExcludedHeaders": [
    //                     "string"
    //                   ],
    //                   "IncludedHeaders": [
    //                     "string"
    //                   ]
    //                 },
    //                 "MatchScope": "string",
    //                 "OversizeHandling": "string"
    //               },
    //               "JsonBody": {
    //                 "InvalidFallbackBehavior": "string",
    //                 "MatchPattern": {
    //                   "All": {},
    //                   "IncludedPaths": [
    //                     "string"
    //                   ]
    //                 },
    //                 "MatchScope": "string",
    //                 "OversizeHandling": "string"
    //               },
    //               "Method": {},
    //               "QueryString": {},
    //               "SingleHeader": {
    //                 "Name": "string"
    //               },
    //               "SingleQueryArgument": {
    //                 "Name": "string"
    //               },
    //               "UriPath": {}
    //             },
    //             "TextTransformations": [
    //               {
    //                 "Priority": number,
    //                 "Type": "string"
    //               }
    //             ]
    //           },
    //           "XssMatchStatement": {
    //             "FieldToMatch": {
    //               "AllQueryArguments": {},
    //               "Body": {
    //                 "OversizeHandling": "string"
    //               },
    //               "Cookies": {
    //                 "MatchPattern": {
    //                   "All": {},
    //                   "ExcludedCookies": [
    //                     "string"
    //                   ],
    //                   "IncludedCookies": [
    //                     "string"
    //                   ]
    //                 },
    //                 "MatchScope": "string",
    //                 "OversizeHandling": "string"
    //               },
    //               "Headers": {
    //                 "MatchPattern": {
    //                   "All": {},
    //                   "ExcludedHeaders": [
    //                     "string"
    //                   ],
    //                   "IncludedHeaders": [
    //                     "string"
    //                   ]
    //                 },
    //                 "MatchScope": "string",
    //                 "OversizeHandling": "string"
    //               },
    //               "JsonBody": {
    //                 "InvalidFallbackBehavior": "string",
    //                 "MatchPattern": {
    //                   "All": {},
    //                   "IncludedPaths": [
    //                     "string"
    //                   ]
    //                 },
    //                 "MatchScope": "string",
    //                 "OversizeHandling": "string"
    //               },
    //               "Method": {},
    //               "QueryString": {},
    //               "SingleHeader": {
    //                 "Name": "string"
    //               },
    //               "SingleQueryArgument": {
    //                 "Name": "string"
    //               },
    //               "UriPath": {}
    //             },
    //             "TextTransformations": [
    //               {
    //                 "Priority": number,
    //                 "Type": "string"
    //               }
    //             ]
    //           }
    //         },
    //         "VisibilityConfig": {
    //           "CloudWatchMetricsEnabled": boolean,
    //           "MetricName": "string",
    //           "SampledRequestsEnabled": boolean
    //         }
    //       }
    //     ],
    //     "VisibilityConfig": {
    //       "CloudWatchMetricsEnabled": boolean,
    //       "MetricName": "string",
    //       "SampledRequestsEnabled": boolean
    //     }
    //   }
    // }


    CkRestW_Dispose(rest);
    CkAuthAwsW_Dispose(authAws);
    CkJsonObjectW_Dispose(json);
    CkStringBuilderW_Dispose(sbRequestBody);
    CkStringBuilderW_Dispose(sbResponseBody);
    CkJsonObjectW_Dispose(jResp);

    }