React Native
React Native
Activix CRM Search for Leads
See more Activix CRM Examples
Demonstrates how to full-text search for leads, returning a JSON list of leads.Chilkat React Native Downloads
import { Http, JsonObject } from '@chilkat/react-native'
async function chilkatExample() {
// This example requires the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
const http = new Http();
http.authToken = 'ACCESS_TOKEN';
http.accept = 'application/json';
let strResp: string;
try {
strResp = await http.quickGetStrAsync('https://crm.activix.ca/api/v2/leads/search?query=Doe');
} catch {
console.log(http.lastErrorText);
return;
}
console.log(`Response Status Code: ${http.lastStatus}`);
const jsonResponse = new JsonObject();
jsonResponse.load(strResp);
jsonResponse.emitCompact = false;
console.log(jsonResponse.emit());
if (http.lastStatus !== 200) {
console.log('Failed.');
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
// }
// }
let i = 0;
let id = 0;
let createdAt = '';
let updatedAt = '';
let accountId = 0;
let addressLine1 = '';
let addressLine2 = '';
let appointmentDate = '';
let availableDate = '';
let averageSpending = '';
let beBackDate = '';
let birthDate = '';
let business = '';
let callDate = '';
let city = '';
let civility = '';
let code = '';
let country = '';
let csiDate = '';
let deliveredById = '';
let deliveredDate = '';
let deliveryDate = '';
let division = '';
let endServiceDate = '';
let firstName = '';
let gas = '';
let gender = 0;
let lastName = '';
let lastVisitDate = '';
let locale = '';
let loyalty = '';
let nextVisitDate = '';
let odometerLastVisit = '';
let openWorkOrderDate = '';
let plannedPickUpDate = '';
let postalCode = '';
let prepaid = '';
let presentedDate = '';
let promisedDate = '';
let province = '';
let rating = '';
let refinancedDate = '';
let repairDate = '';
let repairOrder = '';
let result = '';
let roadTestDate = '';
let saleDate = '';
let secondContact = '';
let secondContactCivility = '';
let segment = '';
let serviceIntervalKm = '';
let serviceMonthlyKm = '';
let serviceProcessIntention = '';
let serviceProcessTransport = '';
let serviceProcessWalkAround = '';
let sex = '';
let source = '';
let status = '';
let storage = '';
let takeOverDate = '';
let vType = '';
let unsubscribeAllDate = '';
let unsubscribeCallDate = '';
let unsubscribeEmailDate = '';
let unsubscribeSmsDate = '';
let workOrder = '';
let accountCreatedAt = '';
let accountUpdatedAt = '';
let accountPartnerId = 0;
let accountActivationDate = '';
let accountDefaultDeliverymanUserId = '';
let accountLeadxpressOptionPriority = 0;
let accountLeadxpressOptionReminderFrequency = 0;
let accountLeadxpressOptionReminderRecurrence = 0;
let accountLogo = '';
let accountLogoEn = '';
let accountMergeRule = '';
let accountMonthStartDay = 0;
let accountName = '';
let accountPhone = '';
let accountWaitingSaleDate = '';
let advisor = '';
let j = 0;
let countJ = 0;
let leadId = 0;
let address = '';
let extension = '';
let numberArg = '';
let accessories = '';
let allowedOdometer = '';
let balance = 0;
let budgetMax = '';
let budgetMin = '';
let cashDown = '';
let category = '';
let categoryRv = '';
let clientNumber = '';
let colorExterior = '';
let colorInterior = '';
let comment = '';
let condition = '';
let endContractDate = '';
let endWarrantyDate = '';
let engine = '';
let extendedWarranty = '';
let fuel = '';
let lengthMax = '';
let lengthMin = '';
let licensePlate = '';
let make = '';
let modality = '';
let model = '';
let odometer = '';
let offerNumber = '';
let vOption = '';
let orderNumber = '';
let payment = '';
let paymentFrequency = '';
let preparation = '';
let price = '';
let profit = '';
let purchaseDate = '';
let rate = '';
let recall = '';
let recordedDate = '';
let residual = '';
let securityDeposit = '';
let sleeping = '';
let soldBy = '';
let soldDate = '';
let stock = '';
let stockState = '';
let term = '';
let transmission = '';
let trim = '';
let url = '';
let value = '';
let vin = '';
let warranty = '';
let weight = '';
let year = '';
let yearMax = '';
let yearMin = '';
const linksFirst = jsonResponse.stringOf('links.first');
const linksLast = jsonResponse.stringOf('links.last');
const linksPrev = jsonResponse.stringOf('links.prev');
const linksNext = jsonResponse.stringOf('links.next');
const metaCurrentPage = jsonResponse.intOf('meta.current_page');
const metaFrom = jsonResponse.intOf('meta.from');
const metaLastPage = jsonResponse.intOf('meta.last_page');
const metaPath = jsonResponse.stringOf('meta.path');
const metaPerPage = jsonResponse.intOf('meta.per_page');
const metaTo = jsonResponse.intOf('meta.to');
const metaTotal = jsonResponse.intOf('meta.total');
i = 0;
const countI = jsonResponse.sizeOfArray('data');
while (i < countI) {
jsonResponse.i = i;
id = jsonResponse.intOf('data[i].id');
createdAt = jsonResponse.stringOf('data[i].created_at');
updatedAt = jsonResponse.stringOf('data[i].updated_at');
accountId = jsonResponse.intOf('data[i].account_id');
addressLine1 = jsonResponse.stringOf('data[i].address_line1');
addressLine2 = jsonResponse.stringOf('data[i].address_line2');
appointmentDate = jsonResponse.stringOf('data[i].appointment_date');
jsonResponse.boolOf('data[i].appt_call');
availableDate = jsonResponse.stringOf('data[i].available_date');
averageSpending = jsonResponse.stringOf('data[i].average_spending');
beBackDate = jsonResponse.stringOf('data[i].be_back_date');
birthDate = jsonResponse.stringOf('data[i].birth_date');
business = jsonResponse.stringOf('data[i].business');
callDate = jsonResponse.stringOf('data[i].call_date');
city = jsonResponse.stringOf('data[i].city');
civility = jsonResponse.stringOf('data[i].civility');
code = jsonResponse.stringOf('data[i].code');
country = jsonResponse.stringOf('data[i].country');
csiDate = jsonResponse.stringOf('data[i].csi_date');
deliveredById = jsonResponse.stringOf('data[i].delivered_by_id');
deliveredDate = jsonResponse.stringOf('data[i].delivered_date');
deliveryDate = jsonResponse.stringOf('data[i].delivery_date');
division = jsonResponse.stringOf('data[i].division');
endServiceDate = jsonResponse.stringOf('data[i].end_service_date');
firstName = jsonResponse.stringOf('data[i].first_name');
gas = jsonResponse.stringOf('data[i].gas');
gender = jsonResponse.intOf('data[i].gender');
jsonResponse.boolOf('data[i].invoiced');
lastName = jsonResponse.stringOf('data[i].last_name');
lastVisitDate = jsonResponse.stringOf('data[i].last_visit_date');
locale = jsonResponse.stringOf('data[i].locale');
loyalty = jsonResponse.stringOf('data[i].loyalty');
nextVisitDate = jsonResponse.stringOf('data[i].next_visit_date');
odometerLastVisit = jsonResponse.stringOf('data[i].odometer_last_visit');
openWorkOrderDate = jsonResponse.stringOf('data[i].open_work_order_date');
plannedPickUpDate = jsonResponse.stringOf('data[i].planned_pick_up_date');
postalCode = jsonResponse.stringOf('data[i].postal_code');
prepaid = jsonResponse.stringOf('data[i].prepaid');
jsonResponse.boolOf('data[i].prepared');
presentedDate = jsonResponse.stringOf('data[i].presented_date');
promisedDate = jsonResponse.stringOf('data[i].promised_date');
province = jsonResponse.stringOf('data[i].province');
rating = jsonResponse.stringOf('data[i].rating');
jsonResponse.boolOf('data[i].reached_client');
refinancedDate = jsonResponse.stringOf('data[i].refinanced_date');
repairDate = jsonResponse.stringOf('data[i].repair_date');
repairOrder = jsonResponse.stringOf('data[i].repair_order');
result = jsonResponse.stringOf('data[i].result');
roadTestDate = jsonResponse.stringOf('data[i].road_test_date');
saleDate = jsonResponse.stringOf('data[i].sale_date');
secondContact = jsonResponse.stringOf('data[i].second_contact');
secondContactCivility = jsonResponse.stringOf('data[i].second_contact_civility');
segment = jsonResponse.stringOf('data[i].segment');
jsonResponse.boolOf('data[i].service_cleaned');
serviceIntervalKm = jsonResponse.stringOf('data[i].service_interval_km');
serviceMonthlyKm = jsonResponse.stringOf('data[i].service_monthly_km');
serviceProcessIntention = jsonResponse.stringOf('data[i].service_process.intention');
serviceProcessTransport = jsonResponse.stringOf('data[i].service_process.transport');
serviceProcessWalkAround = jsonResponse.stringOf('data[i].service_process.walk_around');
sex = jsonResponse.stringOf('data[i].sex');
source = jsonResponse.stringOf('data[i].source');
status = jsonResponse.stringOf('data[i].status');
storage = jsonResponse.stringOf('data[i].storage');
takeOverDate = jsonResponse.stringOf('data[i].take_over_date');
vType = jsonResponse.stringOf('data[i].type');
unsubscribeAllDate = jsonResponse.stringOf('data[i].unsubscribe_all_date');
unsubscribeCallDate = jsonResponse.stringOf('data[i].unsubscribe_call_date');
unsubscribeEmailDate = jsonResponse.stringOf('data[i].unsubscribe_email_date');
unsubscribeSmsDate = jsonResponse.stringOf('data[i].unsubscribe_sms_date');
workOrder = jsonResponse.stringOf('data[i].work_order');
accountId = jsonResponse.intOf('data[i].account.id');
accountCreatedAt = jsonResponse.stringOf('data[i].account.created_at');
accountUpdatedAt = jsonResponse.stringOf('data[i].account.updated_at');
accountPartnerId = jsonResponse.intOf('data[i].account.partner_id');
jsonResponse.boolOf('data[i].account.activity_report');
jsonResponse.boolOf('data[i].account.commercial');
jsonResponse.boolOf('data[i].account.event');
jsonResponse.boolOf('data[i].account.leadxpress');
jsonResponse.boolOf('data[i].account.loyalty');
jsonResponse.boolOf('data[i].account.phone_up');
jsonResponse.boolOf('data[i].account.renewal');
jsonResponse.boolOf('data[i].account.sale_table');
jsonResponse.boolOf('data[i].account.service');
jsonResponse.boolOf('data[i].account.walk_in');
jsonResponse.boolOf('data[i].account.webboost');
jsonResponse.boolOf('data[i].account.account_manager');
accountActivationDate = jsonResponse.stringOf('data[i].account.activation_date');
jsonResponse.boolOf('data[i].account.active');
jsonResponse.boolOf('data[i].account.assigned_lead');
jsonResponse.boolOf('data[i].account.auto_renewal');
jsonResponse.boolOf('data[i].account.auto_renewal_new');
jsonResponse.boolOf('data[i].account.auto_renewal_used');
jsonResponse.boolOf('data[i].account.automation');
jsonResponse.boolOf('data[i].account.bdc_advisor');
jsonResponse.boolOf('data[i].account.calendar_options');
jsonResponse.boolOf('data[i].account.client_card_fields.process.gas');
jsonResponse.boolOf('data[i].account.client_card_fields.process.recorded');
jsonResponse.boolOf('data[i].account.client_card_fields.process.available');
jsonResponse.boolOf('data[i].account.client_card_fields.process.discounted');
jsonResponse.boolOf('data[i].account.client_card_fields.commercial.profit');
jsonResponse.boolOf('data[i].account.client_card_fields.commercial.exclude');
jsonResponse.boolOf('data[i].account.client_card_fields.commercial.meeting');
jsonResponse.boolOf('data[i].account.client_card_fields.performance.deposit');
jsonResponse.boolOf('data[i].account.client_card_fields.performance.refinanced');
jsonResponse.boolOf('data[i].account.client_card_fields.performance.dealer_tour');
jsonResponse.boolOf('data[i].account.client_card_fields.performance.walk_around');
jsonResponse.boolOf('data[i].account.client_card_fields.performance.qualification');
jsonResponse.boolOf('data[i].account.client_card_fields.performance.twenty_four_hour');
jsonResponse.boolOf('data[i].account.client_card_fields.general_info.budget');
jsonResponse.boolOf('data[i].account.client_card_fields.general_info.sector');
jsonResponse.boolOf('data[i].account.client_card_fields.general_info.custom_1');
jsonResponse.boolOf('data[i].account.client_card_fields.general_info.custom_2');
jsonResponse.boolOf('data[i].account.client_card_fields.general_info.custom_3');
jsonResponse.boolOf('data[i].account.client_card_fields.general_info.custom_4');
jsonResponse.boolOf('data[i].account.client_card_fields.general_info.custom_5');
jsonResponse.boolOf('data[i].account.client_card_fields.general_info.custom_6');
jsonResponse.boolOf('data[i].account.client_card_fields.general_info.custom_7');
jsonResponse.boolOf('data[i].account.client_card_fields.general_info.custom_8');
jsonResponse.boolOf('data[i].account.client_card_fields.general_info.custom_9');
jsonResponse.boolOf('data[i].account.client_card_fields.general_info.custom_10');
jsonResponse.boolOf('data[i].account.client_card_fields.general_info.communication_preference');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.vin');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.fuel');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.rate');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.term');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.tire');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.year');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.color');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.price');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.stock');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.total');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.budget');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.engine');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.length');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.profit');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.suffix');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.weight');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.comment');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.mileage');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.payment');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.bodyType');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.category');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.modality');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.residual');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.sleeping');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.warranty');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.frequency');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.accessories');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.category_rv');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.preparation');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.initial_cash');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.offer_number');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.order_number');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.transmission');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.documentation');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.drivingWheels');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.color_exterior');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.color_interior');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.allowed_mileage');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.security_deposit');
jsonResponse.boolOf('data[i].account.client_card_fields.wanted_vehicle.end_contract_date');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.vin');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.fuel');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.link');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.rate');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.term');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.year');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.color');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.price');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.stock');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.value');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.budget');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.engine');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.length');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.profit');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.suffix');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.weight');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.balance');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.comment');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.mileage');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.payment');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.renewal');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.sold_by');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.bodyType');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.category');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.modality');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.residual');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.sleeping');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.warranty');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.condition');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.frequency');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.intention');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.refinance');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.requested');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.sold_date');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.category_rv');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.institution');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.initial_cash');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.offer_number');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.transmission');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.drivingWheels');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.color_exterior');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.color_interior');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.allowed_mileage');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.security_deposit');
jsonResponse.boolOf('data[i].account.client_card_fields.exchange_vehicle.end_contract_date');
jsonResponse.boolOf('data[i].account.client_number');
jsonResponse.boolOf('data[i].account.confirmation_appt');
jsonResponse.boolOf('data[i].account.credit');
jsonResponse.boolOf('data[i].account.csi');
jsonResponse.boolOf('data[i].account.csi_used');
accountDefaultDeliverymanUserId = jsonResponse.stringOf('data[i].account.default_deliveryman_user_id');
jsonResponse.boolOf('data[i].account.delivered_by');
jsonResponse.boolOf('data[i].account.disable_communication_audio');
jsonResponse.boolOf('data[i].account.duplicates');
jsonResponse.boolOf('data[i].account.guest_action');
jsonResponse.boolOf('data[i].account.email_client');
jsonResponse.boolOf('data[i].account.in_turn');
jsonResponse.boolOf('data[i].account.in_turn_director_management');
jsonResponse.boolOf('data[i].account.leads_other_division');
accountLeadxpressOptionPriority = jsonResponse.intOf('data[i].account.leadxpress_option.priority');
accountLeadxpressOptionReminderFrequency = jsonResponse.intOf('data[i].account.leadxpress_option.reminder.frequency');
accountLeadxpressOptionReminderRecurrence = jsonResponse.intOf('data[i].account.leadxpress_option.reminder.recurrence');
jsonResponse.boolOf('data[i].account.leadxpress_option.schedule.account');
jsonResponse.boolOf('data[i].account.leadxpress_option.schedule.advisor');
jsonResponse.boolOf('data[i].account.limited_audio_access');
accountLogo = jsonResponse.stringOf('data[i].account.logo');
accountLogoEn = jsonResponse.stringOf('data[i].account.logo_en');
jsonResponse.boolOf('data[i].account.mandatory_coordinate');
jsonResponse.boolOf('data[i].account.manually_status');
accountMergeRule = jsonResponse.stringOf('data[i].account.merge_rule');
accountMonthStartDay = jsonResponse.intOf('data[i].account.month_start_day');
accountName = jsonResponse.stringOf('data[i].account.name');
jsonResponse.boolOf('data[i].account.niotext');
jsonResponse.boolOf('data[i].account.niotext_phone');
accountPhone = jsonResponse.stringOf('data[i].account.phone');
jsonResponse.boolOf('data[i].account.power_sport');
jsonResponse.boolOf('data[i].account.process');
jsonResponse.boolOf('data[i].account.recreative_special');
jsonResponse.boolOf('data[i].account.result_date_validation');
jsonResponse.boolOf('data[i].account.sale_accessories');
jsonResponse.boolOf('data[i].account.sale_by_phone');
jsonResponse.boolOf('data[i].account.sale_date_month');
jsonResponse.boolOf('data[i].account.sale_table_options.accessory_column');
jsonResponse.boolOf('data[i].account.sale_table_options.commercial_column');
jsonResponse.boolOf('data[i].account.sale_table_options.division_grouped_total_column');
jsonResponse.boolOf('data[i].account.sale_validation');
jsonResponse.boolOf('data[i].account.scan');
jsonResponse.boolOf('data[i].account.stock_required_for_sale');
jsonResponse.boolOf('data[i].account.take_over_director');
jsonResponse.boolOf('data[i].account.trade_report');
jsonResponse.boolOf('data[i].account.unrestricted_assignment');
jsonResponse.boolOf('data[i].account.unsubscribe');
jsonResponse.boolOf('data[i].account.untreated_lead');
jsonResponse.boolOf('data[i].account.vehicle_model_text');
jsonResponse.boolOf('data[i].account.vehicle_text');
jsonResponse.boolOf('data[i].account.verified_sale');
jsonResponse.boolOf('data[i].account.vin_decoder');
accountWaitingSaleDate = jsonResponse.stringOf('data[i].account.waiting_sale_date');
jsonResponse.boolOf('data[i].account.waiting_sale_option');
advisor = jsonResponse.stringOf('data[i].advisor');
j = 0;
countJ = jsonResponse.sizeOfArray('data[i].emails');
while (j < countJ) {
jsonResponse.j = j;
id = jsonResponse.intOf('data[i].emails[j].id');
createdAt = jsonResponse.stringOf('data[i].emails[j].created_at');
updatedAt = jsonResponse.stringOf('data[i].emails[j].updated_at');
leadId = jsonResponse.intOf('data[i].emails[j].lead_id');
address = jsonResponse.stringOf('data[i].emails[j].address');
vType = jsonResponse.stringOf('data[i].emails[j].type');
jsonResponse.boolOf('data[i].emails[j].valid');
j++;
}
j = 0;
countJ = jsonResponse.sizeOfArray('data[i].phones');
while (j < countJ) {
jsonResponse.j = j;
id = jsonResponse.intOf('data[i].phones[j].id');
createdAt = jsonResponse.stringOf('data[i].phones[j].created_at');
updatedAt = jsonResponse.stringOf('data[i].phones[j].updated_at');
leadId = jsonResponse.intOf('data[i].phones[j].lead_id');
extension = jsonResponse.stringOf('data[i].phones[j].extension');
numberArg = jsonResponse.stringOf('data[i].phones[j].number');
vType = jsonResponse.stringOf('data[i].phones[j].type');
jsonResponse.boolOf('data[i].phones[j].valid');
jsonResponse.boolOf('data[i].phones[j].validated');
jsonResponse.boolOf('data[i].phones[j].mobile');
j++;
}
j = 0;
countJ = jsonResponse.sizeOfArray('data[i].vehicles');
while (j < countJ) {
jsonResponse.j = j;
id = jsonResponse.intOf('data[i].vehicles[j].id');
createdAt = jsonResponse.stringOf('data[i].vehicles[j].created_at');
updatedAt = jsonResponse.stringOf('data[i].vehicles[j].updated_at');
leadId = jsonResponse.intOf('data[i].vehicles[j].lead_id');
accessories = jsonResponse.stringOf('data[i].vehicles[j].accessories');
allowedOdometer = jsonResponse.stringOf('data[i].vehicles[j].allowed_odometer');
balance = jsonResponse.intOf('data[i].vehicles[j].balance');
budgetMax = jsonResponse.stringOf('data[i].vehicles[j].budget_max');
budgetMin = jsonResponse.stringOf('data[i].vehicles[j].budget_min');
cashDown = jsonResponse.stringOf('data[i].vehicles[j].cash_down');
category = jsonResponse.stringOf('data[i].vehicles[j].category');
categoryRv = jsonResponse.stringOf('data[i].vehicles[j].category_rv');
clientNumber = jsonResponse.stringOf('data[i].vehicles[j].client_number');
colorExterior = jsonResponse.stringOf('data[i].vehicles[j].color_exterior');
colorInterior = jsonResponse.stringOf('data[i].vehicles[j].color_interior');
comment = jsonResponse.stringOf('data[i].vehicles[j].comment');
condition = jsonResponse.stringOf('data[i].vehicles[j].condition');
endContractDate = jsonResponse.stringOf('data[i].vehicles[j].end_contract_date');
endWarrantyDate = jsonResponse.stringOf('data[i].vehicles[j].end_warranty_date');
engine = jsonResponse.stringOf('data[i].vehicles[j].engine');
extendedWarranty = jsonResponse.stringOf('data[i].vehicles[j].extended_warranty');
fuel = jsonResponse.stringOf('data[i].vehicles[j].fuel');
lengthMax = jsonResponse.stringOf('data[i].vehicles[j].length_max');
lengthMin = jsonResponse.stringOf('data[i].vehicles[j].length_min');
licensePlate = jsonResponse.stringOf('data[i].vehicles[j].license_plate');
make = jsonResponse.stringOf('data[i].vehicles[j].make');
modality = jsonResponse.stringOf('data[i].vehicles[j].modality');
model = jsonResponse.stringOf('data[i].vehicles[j].model');
odometer = jsonResponse.stringOf('data[i].vehicles[j].odometer');
offerNumber = jsonResponse.stringOf('data[i].vehicles[j].offer_number');
vOption = jsonResponse.stringOf('data[i].vehicles[j].option');
orderNumber = jsonResponse.stringOf('data[i].vehicles[j].order_number');
payment = jsonResponse.stringOf('data[i].vehicles[j].payment');
paymentFrequency = jsonResponse.stringOf('data[i].vehicles[j].payment_frequency');
preparation = jsonResponse.stringOf('data[i].vehicles[j].preparation');
price = jsonResponse.stringOf('data[i].vehicles[j].price');
profit = jsonResponse.stringOf('data[i].vehicles[j].profit');
purchaseDate = jsonResponse.stringOf('data[i].vehicles[j].purchase_date');
rate = jsonResponse.stringOf('data[i].vehicles[j].rate');
recall = jsonResponse.stringOf('data[i].vehicles[j].recall');
recordedDate = jsonResponse.stringOf('data[i].vehicles[j].recorded_date');
residual = jsonResponse.stringOf('data[i].vehicles[j].residual');
securityDeposit = jsonResponse.stringOf('data[i].vehicles[j].security_deposit');
sleeping = jsonResponse.stringOf('data[i].vehicles[j].sleeping');
jsonResponse.boolOf('data[i].vehicles[j].sold');
soldBy = jsonResponse.stringOf('data[i].vehicles[j].sold_by');
soldDate = jsonResponse.stringOf('data[i].vehicles[j].sold_date');
stock = jsonResponse.stringOf('data[i].vehicles[j].stock');
stockState = jsonResponse.stringOf('data[i].vehicles[j].stock_state');
term = jsonResponse.stringOf('data[i].vehicles[j].term');
jsonResponse.boolOf('data[i].vehicles[j].tire');
transmission = jsonResponse.stringOf('data[i].vehicles[j].transmission');
trim = jsonResponse.stringOf('data[i].vehicles[j].trim');
vType = jsonResponse.stringOf('data[i].vehicles[j].type');
url = jsonResponse.stringOf('data[i].vehicles[j].url');
value = jsonResponse.stringOf('data[i].vehicles[j].value');
vin = jsonResponse.stringOf('data[i].vehicles[j].vin');
warranty = jsonResponse.stringOf('data[i].vehicles[j].warranty');
weight = jsonResponse.stringOf('data[i].vehicles[j].weight');
year = jsonResponse.stringOf('data[i].vehicles[j].year');
yearMax = jsonResponse.stringOf('data[i].vehicles[j].year_max');
yearMin = jsonResponse.stringOf('data[i].vehicles[j].year_min');
j++;
}
j = 0;
countJ = jsonResponse.sizeOfArray('data[i].products');
while (j < countJ) {
jsonResponse.j = j;
j++;
}
i++;
}
}