Chilkat Examples

ChilkatHOME.NET Core C#Android™AutoItCC#C++Chilkat2-PythonCkPythonClassic ASPDataFlexDelphi ActiveXDelphi DLLGoJavaLianjaMono C#Node.jsObjective-CPHP ActiveXPHP ExtensionPerlPowerBuilderPowerShellPureBasicRubySQL ServerSwift 2Swift 3,4,5...TclUnicode CUnicode C++VB.NETVBScriptVisual Basic 6.0Visual FoxProXojo Plugin

C Web API Examples

Primary Categories

ABN AMRO
AWS Secrets Manager
AWS Security Token Service
AWS Translate
Activix CRM
Adyen
Alibaba Cloud OSS
Amazon Cognito
Amazon DynamoDB
Amazon MWS
Amazon Pay
Amazon Rekognition
Amazon SP-API
Amazon Voice ID
Aruba Fatturazione
Azure Maps
Azure Monitor
Azure OAuth2
Azure Storage Accounts
Backblaze S3
Banco Inter
Belgian eHealth Platform
Bitfinex v2 REST
Bluzone
BrickLink
Bunny CDN
CallRail
CardConnect
Cerved
ClickBank
Clickatell
Cloudfare
Constant Contact
DocuSign
Duo Auth MFA
ETrade
Ecwid
Egypt ITIDA
Egypt eReceipt
Etsy
Facebook
Faire
Frame.io
GeoOp
GetHarvest
Global Payments
Google People
Google Search Console
Google Translate
Google Vision
Hungary NAV Invoicing
IBM Text to Speech
Ibanity
IntakeQ
JCC Cyprus
Jira
Lightspeed
MYOB
Magento
Mailgun
Malaysia MyInvois

Mastercard
MedTunnel
MercadoLibre
MessageMedia
Microsoft Calendar
Microsoft Group
Microsoft Tasks and Plans
Microsoft Teams
Moody's
Okta OAuth/OIDC
OneLogin OIDC
OneNote
OpenAI ChatGPT
PRODA
PayPal
Paynow.pl
Peoplevox
Populi
QuickBooks
Rabobank
Refinitiv
Royal Mail OBA
SCiS Schools Catalogue
SII Chile
SMSAPI
SOAP finkok.com
Salesforce
SendGrid
Shippo
Shopify
Shopware
Shopware 6
SimpleTexting
Square
Stripe
SugarCRM
TicketBAI
TikTok Shop
Trello
Twilio
Twitter API v2
Twitter v1
UPS
UniPin
VoiceBase
Vonage
WaTrend
Walmart v3
Wasabi
WhatsApp
WiX
WooCommerce
WordPress
Xero
Yahoo Mail
Yapily
Yousign
ZATCA
Zendesk
Zoom
_Miscellaneous_
eBay
effectconnect
hacienda.go.cr

 

 

 

(C) Activix CRM Search for Leads

Demonstrates how to full-text search for leads, returning a JSON list of leads.

For more information, see https://docs.crm.activix.ca/api/resources/lead

Chilkat C/C++ Library Downloads

MS Visual C/C++

Linux/CentOS C/C++

Alpine Linux C/C++

MAC OS X C/C++

armhf/aarch64 C/C++

C++ Builder

iOS C/C++

Android C/C++

Solaris C/C++

MinGW C/C++

#include <C_CkHttp.h>
#include <C_CkJsonObject.h>

void ChilkatSample(void)
    {
    HCkHttp http;
    const char *strResp;
    HCkJsonObject jsonResponse;
    const char *linksFirst;
    const char *linksLast;
    const char *linksPrev;
    const char *linksNext;
    int metaCurrent_page;
    int metaFrom;
    int metaLast_page;
    const char *metaPath;
    int metaPer_page;
    int metaTo;
    int metaTotal;
    int i;
    int count_i;
    int id;
    const char *created_at;
    const char *updated_at;
    int account_id;
    const char *address_line1;
    const char *address_line2;
    const char *appointment_date;
    BOOL appt_call;
    const char *available_date;
    const char *average_spending;
    const char *be_back_date;
    const char *birth_date;
    const char *business;
    const char *call_date;
    const char *city;
    const char *civility;
    const char *code;
    const char *country;
    const char *csi_date;
    const char *delivered_by_id;
    const char *delivered_date;
    const char *delivery_date;
    const char *division;
    const char *end_service_date;
    const char *first_name;
    const char *gas;
    int gender;
    BOOL invoiced;
    const char *last_name;
    const char *last_visit_date;
    const char *locale;
    const char *loyalty;
    const char *next_visit_date;
    const char *odometer_last_visit;
    const char *open_work_order_date;
    const char *planned_pick_up_date;
    const char *postal_code;
    const char *prepaid;
    BOOL prepared;
    const char *presented_date;
    const char *promised_date;
    const char *province;
    const char *rating;
    BOOL reached_client;
    const char *refinanced_date;
    const char *repair_date;
    const char *repair_order;
    const char *result;
    const char *road_test_date;
    const char *sale_date;
    const char *second_contact;
    const char *second_contact_civility;
    const char *segment;
    BOOL service_cleaned;
    const char *service_interval_km;
    const char *service_monthly_km;
    const char *service_processIntention;
    const char *service_processTransport;
    const char *service_processWalk_around;
    const char *sex;
    const char *source;
    const char *status;
    const char *storage;
    const char *take_over_date;
    const char *v_type;
    const char *unsubscribe_all_date;
    const char *unsubscribe_call_date;
    const char *unsubscribe_email_date;
    const char *unsubscribe_sms_date;
    const char *work_order;
    int accountId;
    const char *accountCreated_at;
    const char *accountUpdated_at;
    int accountPartner_id;
    BOOL accountActivity_report;
    BOOL accountCommercial;
    BOOL accountEvent;
    BOOL accountLeadxpress;
    BOOL accountLoyalty;
    BOOL accountPhone_up;
    BOOL accountRenewal;
    BOOL accountSale_table;
    BOOL accountService;
    BOOL accountWalk_in;
    BOOL accountWebboost;
    BOOL accountAccount_manager;
    const char *accountActivation_date;
    BOOL accountActive;
    BOOL accountAssigned_lead;
    BOOL accountAuto_renewal;
    BOOL accountAuto_renewal_new;
    BOOL accountAuto_renewal_used;
    BOOL accountAutomation;
    BOOL accountBdc_advisor;
    BOOL accountCalendar_options;
    BOOL accountClient_card_fieldsProcessGas;
    BOOL accountClient_card_fieldsProcessRecorded;
    BOOL accountClient_card_fieldsProcessAvailable;
    BOOL accountClient_card_fieldsProcessDiscounted;
    BOOL accountClient_card_fieldsCommercialProfit;
    BOOL accountClient_card_fieldsCommercialExclude;
    BOOL accountClient_card_fieldsCommercialMeeting;
    BOOL accountClient_card_fieldsPerformanceDeposit;
    BOOL accountClient_card_fieldsPerformanceRefinanced;
    BOOL accountClient_card_fieldsPerformanceDealer_tour;
    BOOL accountClient_card_fieldsPerformanceWalk_around;
    BOOL accountClient_card_fieldsPerformanceQualification;
    BOOL accountClient_card_fieldsPerformanceTwenty_four_hour;
    BOOL accountClient_card_fieldsGeneral_infoBudget;
    BOOL accountClient_card_fieldsGeneral_infoSector;
    BOOL accountClient_card_fieldsGeneral_infoCustom_1;
    BOOL accountClient_card_fieldsGeneral_infoCustom_2;
    BOOL accountClient_card_fieldsGeneral_infoCustom_3;
    BOOL accountClient_card_fieldsGeneral_infoCustom_4;
    BOOL accountClient_card_fieldsGeneral_infoCustom_5;
    BOOL accountClient_card_fieldsGeneral_infoCustom_6;
    BOOL accountClient_card_fieldsGeneral_infoCustom_7;
    BOOL accountClient_card_fieldsGeneral_infoCustom_8;
    BOOL accountClient_card_fieldsGeneral_infoCustom_9;
    BOOL accountClient_card_fieldsGeneral_infoCustom_10;
    BOOL accountClient_card_fieldsGeneral_infoCommunication_preference;
    BOOL accountClient_card_fieldsWanted_vehicleVin;
    BOOL accountClient_card_fieldsWanted_vehicleFuel;
    BOOL accountClient_card_fieldsWanted_vehicleRate;
    BOOL accountClient_card_fieldsWanted_vehicleTerm;
    BOOL accountClient_card_fieldsWanted_vehicleTire;
    BOOL accountClient_card_fieldsWanted_vehicleYear;
    BOOL accountClient_card_fieldsWanted_vehicleColor;
    BOOL accountClient_card_fieldsWanted_vehiclePrice;
    BOOL accountClient_card_fieldsWanted_vehicleStock;
    BOOL accountClient_card_fieldsWanted_vehicleTotal;
    BOOL accountClient_card_fieldsWanted_vehicleBudget;
    BOOL accountClient_card_fieldsWanted_vehicleEngine;
    BOOL accountClient_card_fieldsWanted_vehicleLength;
    BOOL accountClient_card_fieldsWanted_vehicleProfit;
    BOOL accountClient_card_fieldsWanted_vehicleSuffix;
    BOOL accountClient_card_fieldsWanted_vehicleWeight;
    BOOL accountClient_card_fieldsWanted_vehicleComment;
    BOOL accountClient_card_fieldsWanted_vehicleMileage;
    BOOL accountClient_card_fieldsWanted_vehiclePayment;
    BOOL accountClient_card_fieldsWanted_vehicleBodyType;
    BOOL accountClient_card_fieldsWanted_vehicleCategory;
    BOOL accountClient_card_fieldsWanted_vehicleModality;
    BOOL accountClient_card_fieldsWanted_vehicleResidual;
    BOOL accountClient_card_fieldsWanted_vehicleSleeping;
    BOOL accountClient_card_fieldsWanted_vehicleWarranty;
    BOOL accountClient_card_fieldsWanted_vehicleFrequency;
    BOOL accountClient_card_fieldsWanted_vehicleAccessories;
    BOOL accountClient_card_fieldsWanted_vehicleCategory_rv;
    BOOL accountClient_card_fieldsWanted_vehiclePreparation;
    BOOL accountClient_card_fieldsWanted_vehicleInitial_cash;
    BOOL accountClient_card_fieldsWanted_vehicleOffer_number;
    BOOL accountClient_card_fieldsWanted_vehicleOrder_number;
    BOOL accountClient_card_fieldsWanted_vehicleTransmission;
    BOOL accountClient_card_fieldsWanted_vehicleDocumentation;
    BOOL accountClient_card_fieldsWanted_vehicleDrivingWheels;
    BOOL accountClient_card_fieldsWanted_vehicleColor_exterior;
    BOOL accountClient_card_fieldsWanted_vehicleColor_interior;
    BOOL accountClient_card_fieldsWanted_vehicleAllowed_mileage;
    BOOL accountClient_card_fieldsWanted_vehicleSecurity_deposit;
    BOOL accountClient_card_fieldsWanted_vehicleEnd_contract_date;
    BOOL accountClient_card_fieldsExchange_vehicleVin;
    BOOL accountClient_card_fieldsExchange_vehicleFuel;
    BOOL accountClient_card_fieldsExchange_vehicleLink;
    BOOL accountClient_card_fieldsExchange_vehicleRate;
    BOOL accountClient_card_fieldsExchange_vehicleTerm;
    BOOL accountClient_card_fieldsExchange_vehicleYear;
    BOOL accountClient_card_fieldsExchange_vehicleColor;
    BOOL accountClient_card_fieldsExchange_vehiclePrice;
    BOOL accountClient_card_fieldsExchange_vehicleStock;
    BOOL accountClient_card_fieldsExchange_vehicleValue;
    BOOL accountClient_card_fieldsExchange_vehicleBudget;
    BOOL accountClient_card_fieldsExchange_vehicleEngine;
    BOOL accountClient_card_fieldsExchange_vehicleLength;
    BOOL accountClient_card_fieldsExchange_vehicleProfit;
    BOOL accountClient_card_fieldsExchange_vehicleSuffix;
    BOOL accountClient_card_fieldsExchange_vehicleWeight;
    BOOL accountClient_card_fieldsExchange_vehicleBalance;
    BOOL accountClient_card_fieldsExchange_vehicleComment;
    BOOL accountClient_card_fieldsExchange_vehicleMileage;
    BOOL accountClient_card_fieldsExchange_vehiclePayment;
    BOOL accountClient_card_fieldsExchange_vehicleRenewal;
    BOOL accountClient_card_fieldsExchange_vehicleSold_by;
    BOOL accountClient_card_fieldsExchange_vehicleBodyType;
    BOOL accountClient_card_fieldsExchange_vehicleCategory;
    BOOL accountClient_card_fieldsExchange_vehicleModality;
    BOOL accountClient_card_fieldsExchange_vehicleResidual;
    BOOL accountClient_card_fieldsExchange_vehicleSleeping;
    BOOL accountClient_card_fieldsExchange_vehicleWarranty;
    BOOL accountClient_card_fieldsExchange_vehicleCondition;
    BOOL accountClient_card_fieldsExchange_vehicleFrequency;
    BOOL accountClient_card_fieldsExchange_vehicleIntention;
    BOOL accountClient_card_fieldsExchange_vehicleRefinance;
    BOOL accountClient_card_fieldsExchange_vehicleRequested;
    BOOL accountClient_card_fieldsExchange_vehicleSold_date;
    BOOL accountClient_card_fieldsExchange_vehicleCategory_rv;
    BOOL accountClient_card_fieldsExchange_vehicleInstitution;
    BOOL accountClient_card_fieldsExchange_vehicleInitial_cash;
    BOOL accountClient_card_fieldsExchange_vehicleOffer_number;
    BOOL accountClient_card_fieldsExchange_vehicleTransmission;
    BOOL accountClient_card_fieldsExchange_vehicleDrivingWheels;
    BOOL accountClient_card_fieldsExchange_vehicleColor_exterior;
    BOOL accountClient_card_fieldsExchange_vehicleColor_interior;
    BOOL accountClient_card_fieldsExchange_vehicleAllowed_mileage;
    BOOL accountClient_card_fieldsExchange_vehicleSecurity_deposit;
    BOOL accountClient_card_fieldsExchange_vehicleEnd_contract_date;
    BOOL accountClient_number;
    BOOL accountConfirmation_appt;
    BOOL accountCredit;
    BOOL accountCsi;
    BOOL accountCsi_used;
    const char *accountDefault_deliveryman_user_id;
    BOOL accountDelivered_by;
    BOOL accountDisable_communication_audio;
    BOOL accountDuplicates;
    BOOL accountGuest_action;
    BOOL accountEmail_client;
    BOOL accountIn_turn;
    BOOL accountIn_turn_director_management;
    BOOL accountLeads_other_division;
    int accountLeadxpress_optionPriority;
    int accountLeadxpress_optionReminderFrequency;
    int accountLeadxpress_optionReminderRecurrence;
    BOOL accountLeadxpress_optionScheduleAccount;
    BOOL accountLeadxpress_optionScheduleAdvisor;
    BOOL accountLimited_audio_access;
    const char *accountLogo;
    const char *accountLogo_en;
    BOOL accountMandatory_coordinate;
    BOOL accountManually_status;
    const char *accountMerge_rule;
    int accountMonth_start_day;
    const char *accountName;
    BOOL accountNiotext;
    BOOL accountNiotext_phone;
    const char *accountPhone;
    BOOL accountPower_sport;
    BOOL accountProcess;
    BOOL accountRecreative_special;
    BOOL accountResult_date_validation;
    BOOL accountSale_accessories;
    BOOL accountSale_by_phone;
    BOOL accountSale_date_month;
    BOOL accountSale_table_optionsAccessory_column;
    BOOL accountSale_table_optionsCommercial_column;
    BOOL accountSale_table_optionsDivision_grouped_total_column;
    BOOL accountSale_validation;
    BOOL accountScan;
    BOOL accountStock_required_for_sale;
    BOOL accountTake_over_director;
    BOOL accountTrade_report;
    BOOL accountUnrestricted_assignment;
    BOOL accountUnsubscribe;
    BOOL accountUntreated_lead;
    BOOL accountVehicle_model_text;
    BOOL accountVehicle_text;
    BOOL accountVerified_sale;
    BOOL accountVin_decoder;
    const char *accountWaiting_sale_date;
    BOOL accountWaiting_sale_option;
    const char *advisor;
    int j;
    int count_j;
    int lead_id;
    const char *address;
    BOOL valid;
    const char *extension;
    const char *number;
    BOOL validated;
    BOOL mobile;
    const char *accessories;
    const char *allowed_odometer;
    int balance;
    const char *budget_max;
    const char *budget_min;
    const char *cash_down;
    const char *category;
    const char *category_rv;
    const char *client_number;
    const char *color_exterior;
    const char *color_interior;
    const char *comment;
    const char *condition;
    const char *end_contract_date;
    const char *end_warranty_date;
    const char *engine;
    const char *extended_warranty;
    const char *fuel;
    const char *length_max;
    const char *length_min;
    const char *license_plate;
    const char *make;
    const char *modality;
    const char *model;
    const char *odometer;
    const char *offer_number;
    const char *v_option;
    const char *order_number;
    const char *payment;
    const char *payment_frequency;
    const char *preparation;
    const char *price;
    const char *profit;
    const char *purchase_date;
    const char *rate;
    const char *recall;
    const char *recorded_date;
    const char *residual;
    const char *security_deposit;
    const char *sleeping;
    BOOL sold;
    const char *sold_by;
    const char *sold_date;
    const char *stock;
    const char *stock_state;
    const char *term;
    BOOL tire;
    const char *transmission;
    const char *trim;
    const char *url;
    const char *value;
    const char *vin;
    const char *warranty;
    const char *weight;
    const char *year;
    const char *year_max;
    const char *year_min;

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

    http = CkHttp_Create();

    CkHttp_putAuthToken(http,"ACCESS_TOKEN");

    CkHttp_putAccept(http,"application/json");

    strResp = CkHttp_quickGetStr(http,"https://crm.activix.ca/api/v2/leads/search?query=Doe");
    if (CkHttp_getLastMethodSuccess(http) != TRUE) {
        printf("%s\n",CkHttp_lastErrorText(http));
        CkHttp_Dispose(http);
        return;
    }

    printf("Response Status Code: %d\n",CkHttp_getLastStatus(http));

    jsonResponse = CkJsonObject_Create();
    CkJsonObject_Load(jsonResponse,strResp);
    CkJsonObject_putEmitCompact(jsonResponse,FALSE);
    printf("%s\n",CkJsonObject_emit(jsonResponse));

    if (CkHttp_getLastStatus(http) != 200) {
        printf("Failed.\n");
        CkHttp_Dispose(http);
        CkJsonObject_Dispose(jsonResponse);
        return;
    }

    // Sample output...
    // (See the parsing code below..)
    // 
    // Use this online tool to generate parsing code from sample JSON: 
    // Generate Parsing Code from JSON

    // {
    //     "data": [
    //         {
    //             "id": 3387562,
    //             "created_at": "2018-04-09T18:05:00+00:00",
    //             "updated_at": "2018-04-09T18:07:00+00:00",
    //             "first_name": "John",
    //             "last_name": "Doe",
    //             ...
    //             "account": {
    //                 "id": 66,
    //                 ...
    //             },
    //             "advisor": {
    //                 "id": 51112,
    //                 ...
    //             },
    //             "emails": [
    //                 {
    //                     "id": 3664451,
    //                     ...
    //                 },
    //                 ...
    //             ],
    //             "phones": [
    //                 {
    //                     "id": 9465546,
    //                     ...
    //                 },
    //                 ...
    //             ],
    //             "vehicles": [
    //                 {
    //                     "id": 4542214,
    //                     ...
    //                 },
    //                 ...
    //             ]
    //         },
    //         ...
    //     ],
    //     "links": {
    //         "first": "https://crm.activix.ca/api/v2/leads/search?query=John&page=1",
    //         "last": "https://crm.activix.ca/api/v2/leads/search?query=John&page=47",
    //         "prev": null,
    //         "next": "https://crm.activix.ca/api/v2/leads/search?query=John&page=2"
    //     },
    //     "meta": {
    //         "current_page": 1,
    //         "from": 1,
    //         "last_page": 47,
    //         "path": "https://crm.activix.ca/api/v2/leads/search",
    //         "per_page": 25,
    //         "to": 25,
    //         "total": 1161
    //     }
    // }

    linksFirst = CkJsonObject_stringOf(jsonResponse,"links.first");
    linksLast = CkJsonObject_stringOf(jsonResponse,"links.last");
    linksPrev = CkJsonObject_stringOf(jsonResponse,"links.prev");
    linksNext = CkJsonObject_stringOf(jsonResponse,"links.next");
    metaCurrent_page = CkJsonObject_IntOf(jsonResponse,"meta.current_page");
    metaFrom = CkJsonObject_IntOf(jsonResponse,"meta.from");
    metaLast_page = CkJsonObject_IntOf(jsonResponse,"meta.last_page");
    metaPath = CkJsonObject_stringOf(jsonResponse,"meta.path");
    metaPer_page = CkJsonObject_IntOf(jsonResponse,"meta.per_page");
    metaTo = CkJsonObject_IntOf(jsonResponse,"meta.to");
    metaTotal = CkJsonObject_IntOf(jsonResponse,"meta.total");
    i = 0;
    count_i = CkJsonObject_SizeOfArray(jsonResponse,"data");
    while (i < count_i) {
        CkJsonObject_putI(jsonResponse,i);
        id = CkJsonObject_IntOf(jsonResponse,"data[i].id");
        created_at = CkJsonObject_stringOf(jsonResponse,"data[i].created_at");
        updated_at = CkJsonObject_stringOf(jsonResponse,"data[i].updated_at");
        account_id = CkJsonObject_IntOf(jsonResponse,"data[i].account_id");
        address_line1 = CkJsonObject_stringOf(jsonResponse,"data[i].address_line1");
        address_line2 = CkJsonObject_stringOf(jsonResponse,"data[i].address_line2");
        appointment_date = CkJsonObject_stringOf(jsonResponse,"data[i].appointment_date");
        appt_call = CkJsonObject_BoolOf(jsonResponse,"data[i].appt_call");
        available_date = CkJsonObject_stringOf(jsonResponse,"data[i].available_date");
        average_spending = CkJsonObject_stringOf(jsonResponse,"data[i].average_spending");
        be_back_date = CkJsonObject_stringOf(jsonResponse,"data[i].be_back_date");
        birth_date = CkJsonObject_stringOf(jsonResponse,"data[i].birth_date");
        business = CkJsonObject_stringOf(jsonResponse,"data[i].business");
        call_date = CkJsonObject_stringOf(jsonResponse,"data[i].call_date");
        city = CkJsonObject_stringOf(jsonResponse,"data[i].city");
        civility = CkJsonObject_stringOf(jsonResponse,"data[i].civility");
        code = CkJsonObject_stringOf(jsonResponse,"data[i].code");
        country = CkJsonObject_stringOf(jsonResponse,"data[i].country");
        csi_date = CkJsonObject_stringOf(jsonResponse,"data[i].csi_date");
        delivered_by_id = CkJsonObject_stringOf(jsonResponse,"data[i].delivered_by_id");
        delivered_date = CkJsonObject_stringOf(jsonResponse,"data[i].delivered_date");
        delivery_date = CkJsonObject_stringOf(jsonResponse,"data[i].delivery_date");
        division = CkJsonObject_stringOf(jsonResponse,"data[i].division");
        end_service_date = CkJsonObject_stringOf(jsonResponse,"data[i].end_service_date");
        first_name = CkJsonObject_stringOf(jsonResponse,"data[i].first_name");
        gas = CkJsonObject_stringOf(jsonResponse,"data[i].gas");
        gender = CkJsonObject_IntOf(jsonResponse,"data[i].gender");
        invoiced = CkJsonObject_BoolOf(jsonResponse,"data[i].invoiced");
        last_name = CkJsonObject_stringOf(jsonResponse,"data[i].last_name");
        last_visit_date = CkJsonObject_stringOf(jsonResponse,"data[i].last_visit_date");
        locale = CkJsonObject_stringOf(jsonResponse,"data[i].locale");
        loyalty = CkJsonObject_stringOf(jsonResponse,"data[i].loyalty");
        next_visit_date = CkJsonObject_stringOf(jsonResponse,"data[i].next_visit_date");
        odometer_last_visit = CkJsonObject_stringOf(jsonResponse,"data[i].odometer_last_visit");
        open_work_order_date = CkJsonObject_stringOf(jsonResponse,"data[i].open_work_order_date");
        planned_pick_up_date = CkJsonObject_stringOf(jsonResponse,"data[i].planned_pick_up_date");
        postal_code = CkJsonObject_stringOf(jsonResponse,"data[i].postal_code");
        prepaid = CkJsonObject_stringOf(jsonResponse,"data[i].prepaid");
        prepared = CkJsonObject_BoolOf(jsonResponse,"data[i].prepared");
        presented_date = CkJsonObject_stringOf(jsonResponse,"data[i].presented_date");
        promised_date = CkJsonObject_stringOf(jsonResponse,"data[i].promised_date");
        province = CkJsonObject_stringOf(jsonResponse,"data[i].province");
        rating = CkJsonObject_stringOf(jsonResponse,"data[i].rating");
        reached_client = CkJsonObject_BoolOf(jsonResponse,"data[i].reached_client");
        refinanced_date = CkJsonObject_stringOf(jsonResponse,"data[i].refinanced_date");
        repair_date = CkJsonObject_stringOf(jsonResponse,"data[i].repair_date");
        repair_order = CkJsonObject_stringOf(jsonResponse,"data[i].repair_order");
        result = CkJsonObject_stringOf(jsonResponse,"data[i].result");
        road_test_date = CkJsonObject_stringOf(jsonResponse,"data[i].road_test_date");
        sale_date = CkJsonObject_stringOf(jsonResponse,"data[i].sale_date");
        second_contact = CkJsonObject_stringOf(jsonResponse,"data[i].second_contact");
        second_contact_civility = CkJsonObject_stringOf(jsonResponse,"data[i].second_contact_civility");
        segment = CkJsonObject_stringOf(jsonResponse,"data[i].segment");
        service_cleaned = CkJsonObject_BoolOf(jsonResponse,"data[i].service_cleaned");
        service_interval_km = CkJsonObject_stringOf(jsonResponse,"data[i].service_interval_km");
        service_monthly_km = CkJsonObject_stringOf(jsonResponse,"data[i].service_monthly_km");
        service_processIntention = CkJsonObject_stringOf(jsonResponse,"data[i].service_process.intention");
        service_processTransport = CkJsonObject_stringOf(jsonResponse,"data[i].service_process.transport");
        service_processWalk_around = CkJsonObject_stringOf(jsonResponse,"data[i].service_process.walk_around");
        sex = CkJsonObject_stringOf(jsonResponse,"data[i].sex");
        source = CkJsonObject_stringOf(jsonResponse,"data[i].source");
        status = CkJsonObject_stringOf(jsonResponse,"data[i].status");
        storage = CkJsonObject_stringOf(jsonResponse,"data[i].storage");
        take_over_date = CkJsonObject_stringOf(jsonResponse,"data[i].take_over_date");
        v_type = CkJsonObject_stringOf(jsonResponse,"data[i].type");
        unsubscribe_all_date = CkJsonObject_stringOf(jsonResponse,"data[i].unsubscribe_all_date");
        unsubscribe_call_date = CkJsonObject_stringOf(jsonResponse,"data[i].unsubscribe_call_date");
        unsubscribe_email_date = CkJsonObject_stringOf(jsonResponse,"data[i].unsubscribe_email_date");
        unsubscribe_sms_date = CkJsonObject_stringOf(jsonResponse,"data[i].unsubscribe_sms_date");
        work_order = CkJsonObject_stringOf(jsonResponse,"data[i].work_order");
        accountId = CkJsonObject_IntOf(jsonResponse,"data[i].account.id");
        accountCreated_at = CkJsonObject_stringOf(jsonResponse,"data[i].account.created_at");
        accountUpdated_at = CkJsonObject_stringOf(jsonResponse,"data[i].account.updated_at");
        accountPartner_id = CkJsonObject_IntOf(jsonResponse,"data[i].account.partner_id");
        accountActivity_report = CkJsonObject_BoolOf(jsonResponse,"data[i].account.activity_report");
        accountCommercial = CkJsonObject_BoolOf(jsonResponse,"data[i].account.commercial");
        accountEvent = CkJsonObject_BoolOf(jsonResponse,"data[i].account.event");
        accountLeadxpress = CkJsonObject_BoolOf(jsonResponse,"data[i].account.leadxpress");
        accountLoyalty = CkJsonObject_BoolOf(jsonResponse,"data[i].account.loyalty");
        accountPhone_up = CkJsonObject_BoolOf(jsonResponse,"data[i].account.phone_up");
        accountRenewal = CkJsonObject_BoolOf(jsonResponse,"data[i].account.renewal");
        accountSale_table = CkJsonObject_BoolOf(jsonResponse,"data[i].account.sale_table");
        accountService = CkJsonObject_BoolOf(jsonResponse,"data[i].account.service");
        accountWalk_in = CkJsonObject_BoolOf(jsonResponse,"data[i].account.walk_in");
        accountWebboost = CkJsonObject_BoolOf(jsonResponse,"data[i].account.webboost");
        accountAccount_manager = CkJsonObject_BoolOf(jsonResponse,"data[i].account.account_manager");
        accountActivation_date = CkJsonObject_stringOf(jsonResponse,"data[i].account.activation_date");
        accountActive = CkJsonObject_BoolOf(jsonResponse,"data[i].account.active");
        accountAssigned_lead = CkJsonObject_BoolOf(jsonResponse,"data[i].account.assigned_lead");
        accountAuto_renewal = CkJsonObject_BoolOf(jsonResponse,"data[i].account.auto_renewal");
        accountAuto_renewal_new = CkJsonObject_BoolOf(jsonResponse,"data[i].account.auto_renewal_new");
        accountAuto_renewal_used = CkJsonObject_BoolOf(jsonResponse,"data[i].account.auto_renewal_used");
        accountAutomation = CkJsonObject_BoolOf(jsonResponse,"data[i].account.automation");
        accountBdc_advisor = CkJsonObject_BoolOf(jsonResponse,"data[i].account.bdc_advisor");
        accountCalendar_options = CkJsonObject_BoolOf(jsonResponse,"data[i].account.calendar_options");
        accountClient_card_fieldsProcessGas = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.process.gas");
        accountClient_card_fieldsProcessRecorded = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.process.recorded");
        accountClient_card_fieldsProcessAvailable = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.process.available");
        accountClient_card_fieldsProcessDiscounted = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.process.discounted");
        accountClient_card_fieldsCommercialProfit = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.commercial.profit");
        accountClient_card_fieldsCommercialExclude = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.commercial.exclude");
        accountClient_card_fieldsCommercialMeeting = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.commercial.meeting");
        accountClient_card_fieldsPerformanceDeposit = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.performance.deposit");
        accountClient_card_fieldsPerformanceRefinanced = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.performance.refinanced");
        accountClient_card_fieldsPerformanceDealer_tour = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.performance.dealer_tour");
        accountClient_card_fieldsPerformanceWalk_around = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.performance.walk_around");
        accountClient_card_fieldsPerformanceQualification = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.performance.qualification");
        accountClient_card_fieldsPerformanceTwenty_four_hour = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.performance.twenty_four_hour");
        accountClient_card_fieldsGeneral_infoBudget = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.general_info.budget");
        accountClient_card_fieldsGeneral_infoSector = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.general_info.sector");
        accountClient_card_fieldsGeneral_infoCustom_1 = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.general_info.custom_1");
        accountClient_card_fieldsGeneral_infoCustom_2 = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.general_info.custom_2");
        accountClient_card_fieldsGeneral_infoCustom_3 = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.general_info.custom_3");
        accountClient_card_fieldsGeneral_infoCustom_4 = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.general_info.custom_4");
        accountClient_card_fieldsGeneral_infoCustom_5 = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.general_info.custom_5");
        accountClient_card_fieldsGeneral_infoCustom_6 = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.general_info.custom_6");
        accountClient_card_fieldsGeneral_infoCustom_7 = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.general_info.custom_7");
        accountClient_card_fieldsGeneral_infoCustom_8 = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.general_info.custom_8");
        accountClient_card_fieldsGeneral_infoCustom_9 = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.general_info.custom_9");
        accountClient_card_fieldsGeneral_infoCustom_10 = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.general_info.custom_10");
        accountClient_card_fieldsGeneral_infoCommunication_preference = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.general_info.communication_preference");
        accountClient_card_fieldsWanted_vehicleVin = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.vin");
        accountClient_card_fieldsWanted_vehicleFuel = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.fuel");
        accountClient_card_fieldsWanted_vehicleRate = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.rate");
        accountClient_card_fieldsWanted_vehicleTerm = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.term");
        accountClient_card_fieldsWanted_vehicleTire = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.tire");
        accountClient_card_fieldsWanted_vehicleYear = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.year");
        accountClient_card_fieldsWanted_vehicleColor = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.color");
        accountClient_card_fieldsWanted_vehiclePrice = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.price");
        accountClient_card_fieldsWanted_vehicleStock = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.stock");
        accountClient_card_fieldsWanted_vehicleTotal = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.total");
        accountClient_card_fieldsWanted_vehicleBudget = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.budget");
        accountClient_card_fieldsWanted_vehicleEngine = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.engine");
        accountClient_card_fieldsWanted_vehicleLength = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.length");
        accountClient_card_fieldsWanted_vehicleProfit = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.profit");
        accountClient_card_fieldsWanted_vehicleSuffix = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.suffix");
        accountClient_card_fieldsWanted_vehicleWeight = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.weight");
        accountClient_card_fieldsWanted_vehicleComment = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.comment");
        accountClient_card_fieldsWanted_vehicleMileage = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.mileage");
        accountClient_card_fieldsWanted_vehiclePayment = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.payment");
        accountClient_card_fieldsWanted_vehicleBodyType = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.bodyType");
        accountClient_card_fieldsWanted_vehicleCategory = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.category");
        accountClient_card_fieldsWanted_vehicleModality = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.modality");
        accountClient_card_fieldsWanted_vehicleResidual = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.residual");
        accountClient_card_fieldsWanted_vehicleSleeping = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.sleeping");
        accountClient_card_fieldsWanted_vehicleWarranty = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.warranty");
        accountClient_card_fieldsWanted_vehicleFrequency = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.frequency");
        accountClient_card_fieldsWanted_vehicleAccessories = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.accessories");
        accountClient_card_fieldsWanted_vehicleCategory_rv = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.category_rv");
        accountClient_card_fieldsWanted_vehiclePreparation = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.preparation");
        accountClient_card_fieldsWanted_vehicleInitial_cash = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.initial_cash");
        accountClient_card_fieldsWanted_vehicleOffer_number = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.offer_number");
        accountClient_card_fieldsWanted_vehicleOrder_number = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.order_number");
        accountClient_card_fieldsWanted_vehicleTransmission = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.transmission");
        accountClient_card_fieldsWanted_vehicleDocumentation = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.documentation");
        accountClient_card_fieldsWanted_vehicleDrivingWheels = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.drivingWheels");
        accountClient_card_fieldsWanted_vehicleColor_exterior = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.color_exterior");
        accountClient_card_fieldsWanted_vehicleColor_interior = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.color_interior");
        accountClient_card_fieldsWanted_vehicleAllowed_mileage = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.allowed_mileage");
        accountClient_card_fieldsWanted_vehicleSecurity_deposit = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.security_deposit");
        accountClient_card_fieldsWanted_vehicleEnd_contract_date = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.wanted_vehicle.end_contract_date");
        accountClient_card_fieldsExchange_vehicleVin = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.vin");
        accountClient_card_fieldsExchange_vehicleFuel = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.fuel");
        accountClient_card_fieldsExchange_vehicleLink = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.link");
        accountClient_card_fieldsExchange_vehicleRate = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.rate");
        accountClient_card_fieldsExchange_vehicleTerm = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.term");
        accountClient_card_fieldsExchange_vehicleYear = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.year");
        accountClient_card_fieldsExchange_vehicleColor = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.color");
        accountClient_card_fieldsExchange_vehiclePrice = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.price");
        accountClient_card_fieldsExchange_vehicleStock = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.stock");
        accountClient_card_fieldsExchange_vehicleValue = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.value");
        accountClient_card_fieldsExchange_vehicleBudget = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.budget");
        accountClient_card_fieldsExchange_vehicleEngine = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.engine");
        accountClient_card_fieldsExchange_vehicleLength = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.length");
        accountClient_card_fieldsExchange_vehicleProfit = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.profit");
        accountClient_card_fieldsExchange_vehicleSuffix = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.suffix");
        accountClient_card_fieldsExchange_vehicleWeight = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.weight");
        accountClient_card_fieldsExchange_vehicleBalance = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.balance");
        accountClient_card_fieldsExchange_vehicleComment = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.comment");
        accountClient_card_fieldsExchange_vehicleMileage = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.mileage");
        accountClient_card_fieldsExchange_vehiclePayment = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.payment");
        accountClient_card_fieldsExchange_vehicleRenewal = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.renewal");
        accountClient_card_fieldsExchange_vehicleSold_by = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.sold_by");
        accountClient_card_fieldsExchange_vehicleBodyType = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.bodyType");
        accountClient_card_fieldsExchange_vehicleCategory = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.category");
        accountClient_card_fieldsExchange_vehicleModality = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.modality");
        accountClient_card_fieldsExchange_vehicleResidual = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.residual");
        accountClient_card_fieldsExchange_vehicleSleeping = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.sleeping");
        accountClient_card_fieldsExchange_vehicleWarranty = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.warranty");
        accountClient_card_fieldsExchange_vehicleCondition = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.condition");
        accountClient_card_fieldsExchange_vehicleFrequency = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.frequency");
        accountClient_card_fieldsExchange_vehicleIntention = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.intention");
        accountClient_card_fieldsExchange_vehicleRefinance = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.refinance");
        accountClient_card_fieldsExchange_vehicleRequested = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.requested");
        accountClient_card_fieldsExchange_vehicleSold_date = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.sold_date");
        accountClient_card_fieldsExchange_vehicleCategory_rv = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.category_rv");
        accountClient_card_fieldsExchange_vehicleInstitution = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.institution");
        accountClient_card_fieldsExchange_vehicleInitial_cash = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.initial_cash");
        accountClient_card_fieldsExchange_vehicleOffer_number = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.offer_number");
        accountClient_card_fieldsExchange_vehicleTransmission = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.transmission");
        accountClient_card_fieldsExchange_vehicleDrivingWheels = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.drivingWheels");
        accountClient_card_fieldsExchange_vehicleColor_exterior = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.color_exterior");
        accountClient_card_fieldsExchange_vehicleColor_interior = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.color_interior");
        accountClient_card_fieldsExchange_vehicleAllowed_mileage = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.allowed_mileage");
        accountClient_card_fieldsExchange_vehicleSecurity_deposit = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.security_deposit");
        accountClient_card_fieldsExchange_vehicleEnd_contract_date = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_card_fields.exchange_vehicle.end_contract_date");
        accountClient_number = CkJsonObject_BoolOf(jsonResponse,"data[i].account.client_number");
        accountConfirmation_appt = CkJsonObject_BoolOf(jsonResponse,"data[i].account.confirmation_appt");
        accountCredit = CkJsonObject_BoolOf(jsonResponse,"data[i].account.credit");
        accountCsi = CkJsonObject_BoolOf(jsonResponse,"data[i].account.csi");
        accountCsi_used = CkJsonObject_BoolOf(jsonResponse,"data[i].account.csi_used");
        accountDefault_deliveryman_user_id = CkJsonObject_stringOf(jsonResponse,"data[i].account.default_deliveryman_user_id");
        accountDelivered_by = CkJsonObject_BoolOf(jsonResponse,"data[i].account.delivered_by");
        accountDisable_communication_audio = CkJsonObject_BoolOf(jsonResponse,"data[i].account.disable_communication_audio");
        accountDuplicates = CkJsonObject_BoolOf(jsonResponse,"data[i].account.duplicates");
        accountGuest_action = CkJsonObject_BoolOf(jsonResponse,"data[i].account.guest_action");
        accountEmail_client = CkJsonObject_BoolOf(jsonResponse,"data[i].account.email_client");
        accountIn_turn = CkJsonObject_BoolOf(jsonResponse,"data[i].account.in_turn");
        accountIn_turn_director_management = CkJsonObject_BoolOf(jsonResponse,"data[i].account.in_turn_director_management");
        accountLeads_other_division = CkJsonObject_BoolOf(jsonResponse,"data[i].account.leads_other_division");
        accountLeadxpress_optionPriority = CkJsonObject_IntOf(jsonResponse,"data[i].account.leadxpress_option.priority");
        accountLeadxpress_optionReminderFrequency = CkJsonObject_IntOf(jsonResponse,"data[i].account.leadxpress_option.reminder.frequency");
        accountLeadxpress_optionReminderRecurrence = CkJsonObject_IntOf(jsonResponse,"data[i].account.leadxpress_option.reminder.recurrence");
        accountLeadxpress_optionScheduleAccount = CkJsonObject_BoolOf(jsonResponse,"data[i].account.leadxpress_option.schedule.account");
        accountLeadxpress_optionScheduleAdvisor = CkJsonObject_BoolOf(jsonResponse,"data[i].account.leadxpress_option.schedule.advisor");
        accountLimited_audio_access = CkJsonObject_BoolOf(jsonResponse,"data[i].account.limited_audio_access");
        accountLogo = CkJsonObject_stringOf(jsonResponse,"data[i].account.logo");
        accountLogo_en = CkJsonObject_stringOf(jsonResponse,"data[i].account.logo_en");
        accountMandatory_coordinate = CkJsonObject_BoolOf(jsonResponse,"data[i].account.mandatory_coordinate");
        accountManually_status = CkJsonObject_BoolOf(jsonResponse,"data[i].account.manually_status");
        accountMerge_rule = CkJsonObject_stringOf(jsonResponse,"data[i].account.merge_rule");
        accountMonth_start_day = CkJsonObject_IntOf(jsonResponse,"data[i].account.month_start_day");
        accountName = CkJsonObject_stringOf(jsonResponse,"data[i].account.name");
        accountNiotext = CkJsonObject_BoolOf(jsonResponse,"data[i].account.niotext");
        accountNiotext_phone = CkJsonObject_BoolOf(jsonResponse,"data[i].account.niotext_phone");
        accountPhone = CkJsonObject_stringOf(jsonResponse,"data[i].account.phone");
        accountPower_sport = CkJsonObject_BoolOf(jsonResponse,"data[i].account.power_sport");
        accountProcess = CkJsonObject_BoolOf(jsonResponse,"data[i].account.process");
        accountRecreative_special = CkJsonObject_BoolOf(jsonResponse,"data[i].account.recreative_special");
        accountResult_date_validation = CkJsonObject_BoolOf(jsonResponse,"data[i].account.result_date_validation");
        accountSale_accessories = CkJsonObject_BoolOf(jsonResponse,"data[i].account.sale_accessories");
        accountSale_by_phone = CkJsonObject_BoolOf(jsonResponse,"data[i].account.sale_by_phone");
        accountSale_date_month = CkJsonObject_BoolOf(jsonResponse,"data[i].account.sale_date_month");
        accountSale_table_optionsAccessory_column = CkJsonObject_BoolOf(jsonResponse,"data[i].account.sale_table_options.accessory_column");
        accountSale_table_optionsCommercial_column = CkJsonObject_BoolOf(jsonResponse,"data[i].account.sale_table_options.commercial_column");
        accountSale_table_optionsDivision_grouped_total_column = CkJsonObject_BoolOf(jsonResponse,"data[i].account.sale_table_options.division_grouped_total_column");
        accountSale_validation = CkJsonObject_BoolOf(jsonResponse,"data[i].account.sale_validation");
        accountScan = CkJsonObject_BoolOf(jsonResponse,"data[i].account.scan");
        accountStock_required_for_sale = CkJsonObject_BoolOf(jsonResponse,"data[i].account.stock_required_for_sale");
        accountTake_over_director = CkJsonObject_BoolOf(jsonResponse,"data[i].account.take_over_director");
        accountTrade_report = CkJsonObject_BoolOf(jsonResponse,"data[i].account.trade_report");
        accountUnrestricted_assignment = CkJsonObject_BoolOf(jsonResponse,"data[i].account.unrestricted_assignment");
        accountUnsubscribe = CkJsonObject_BoolOf(jsonResponse,"data[i].account.unsubscribe");
        accountUntreated_lead = CkJsonObject_BoolOf(jsonResponse,"data[i].account.untreated_lead");
        accountVehicle_model_text = CkJsonObject_BoolOf(jsonResponse,"data[i].account.vehicle_model_text");
        accountVehicle_text = CkJsonObject_BoolOf(jsonResponse,"data[i].account.vehicle_text");
        accountVerified_sale = CkJsonObject_BoolOf(jsonResponse,"data[i].account.verified_sale");
        accountVin_decoder = CkJsonObject_BoolOf(jsonResponse,"data[i].account.vin_decoder");
        accountWaiting_sale_date = CkJsonObject_stringOf(jsonResponse,"data[i].account.waiting_sale_date");
        accountWaiting_sale_option = CkJsonObject_BoolOf(jsonResponse,"data[i].account.waiting_sale_option");
        advisor = CkJsonObject_stringOf(jsonResponse,"data[i].advisor");
        j = 0;
        count_j = CkJsonObject_SizeOfArray(jsonResponse,"data[i].emails");
        while (j < count_j) {
            CkJsonObject_putJ(jsonResponse,j);
            id = CkJsonObject_IntOf(jsonResponse,"data[i].emails[j].id");
            created_at = CkJsonObject_stringOf(jsonResponse,"data[i].emails[j].created_at");
            updated_at = CkJsonObject_stringOf(jsonResponse,"data[i].emails[j].updated_at");
            lead_id = CkJsonObject_IntOf(jsonResponse,"data[i].emails[j].lead_id");
            address = CkJsonObject_stringOf(jsonResponse,"data[i].emails[j].address");
            v_type = CkJsonObject_stringOf(jsonResponse,"data[i].emails[j].type");
            valid = CkJsonObject_BoolOf(jsonResponse,"data[i].emails[j].valid");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObject_SizeOfArray(jsonResponse,"data[i].phones");
        while (j < count_j) {
            CkJsonObject_putJ(jsonResponse,j);
            id = CkJsonObject_IntOf(jsonResponse,"data[i].phones[j].id");
            created_at = CkJsonObject_stringOf(jsonResponse,"data[i].phones[j].created_at");
            updated_at = CkJsonObject_stringOf(jsonResponse,"data[i].phones[j].updated_at");
            lead_id = CkJsonObject_IntOf(jsonResponse,"data[i].phones[j].lead_id");
            extension = CkJsonObject_stringOf(jsonResponse,"data[i].phones[j].extension");
            number = CkJsonObject_stringOf(jsonResponse,"data[i].phones[j].number");
            v_type = CkJsonObject_stringOf(jsonResponse,"data[i].phones[j].type");
            valid = CkJsonObject_BoolOf(jsonResponse,"data[i].phones[j].valid");
            validated = CkJsonObject_BoolOf(jsonResponse,"data[i].phones[j].validated");
            mobile = CkJsonObject_BoolOf(jsonResponse,"data[i].phones[j].mobile");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObject_SizeOfArray(jsonResponse,"data[i].vehicles");
        while (j < count_j) {
            CkJsonObject_putJ(jsonResponse,j);
            id = CkJsonObject_IntOf(jsonResponse,"data[i].vehicles[j].id");
            created_at = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].created_at");
            updated_at = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].updated_at");
            lead_id = CkJsonObject_IntOf(jsonResponse,"data[i].vehicles[j].lead_id");
            accessories = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].accessories");
            allowed_odometer = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].allowed_odometer");
            balance = CkJsonObject_IntOf(jsonResponse,"data[i].vehicles[j].balance");
            budget_max = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].budget_max");
            budget_min = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].budget_min");
            cash_down = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].cash_down");
            category = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].category");
            category_rv = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].category_rv");
            client_number = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].client_number");
            color_exterior = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].color_exterior");
            color_interior = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].color_interior");
            comment = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].comment");
            condition = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].condition");
            end_contract_date = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].end_contract_date");
            end_warranty_date = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].end_warranty_date");
            engine = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].engine");
            extended_warranty = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].extended_warranty");
            fuel = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].fuel");
            length_max = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].length_max");
            length_min = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].length_min");
            license_plate = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].license_plate");
            make = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].make");
            modality = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].modality");
            model = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].model");
            odometer = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].odometer");
            offer_number = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].offer_number");
            v_option = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].option");
            order_number = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].order_number");
            payment = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].payment");
            payment_frequency = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].payment_frequency");
            preparation = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].preparation");
            price = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].price");
            profit = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].profit");
            purchase_date = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].purchase_date");
            rate = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].rate");
            recall = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].recall");
            recorded_date = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].recorded_date");
            residual = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].residual");
            security_deposit = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].security_deposit");
            sleeping = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].sleeping");
            sold = CkJsonObject_BoolOf(jsonResponse,"data[i].vehicles[j].sold");
            sold_by = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].sold_by");
            sold_date = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].sold_date");
            stock = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].stock");
            stock_state = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].stock_state");
            term = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].term");
            tire = CkJsonObject_BoolOf(jsonResponse,"data[i].vehicles[j].tire");
            transmission = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].transmission");
            trim = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].trim");
            v_type = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].type");
            url = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].url");
            value = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].value");
            vin = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].vin");
            warranty = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].warranty");
            weight = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].weight");
            year = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].year");
            year_max = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].year_max");
            year_min = CkJsonObject_stringOf(jsonResponse,"data[i].vehicles[j].year_min");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObject_SizeOfArray(jsonResponse,"data[i].products");
        while (j < count_j) {
            CkJsonObject_putJ(jsonResponse,j);
            j = j + 1;
        }

        i = i + 1;
    }



    CkHttp_Dispose(http);
    CkJsonObject_Dispose(jsonResponse);

    }

 

© 2000-2024 Chilkat Software, Inc. All Rights Reserved.