Zig
Zig
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 Zig Downloads
const std = @import("std");
const chilkat = @import("chilkat");
pub fn main(init: std.process.Init) !void {
const alloc = init.arena.allocator();
// This example requires the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
const http = try chilkat.Http.init();
defer http.deinit();
http.setAuthToken("ACCESS_TOKEN");
http.setAccept("application/json");
const str_resp = http.quickGetStr(alloc, "https://crm.activix.ca/api/v2/leads/search?query=Doe") catch {
std.debug.print("{s}\n", .{try http.getLastErrorText(alloc)});
return;
};
std.debug.print("Response Status Code: {d}\n", .{http.getLastStatus()});
const json_response = try chilkat.JsonObject.init();
defer json_response.deinit();
json_response.load(str_resp) catch {};
json_response.setEmitCompact(false);
std.debug.print("{s}\n", .{try json_response.emit(alloc)});
if (http.getLastStatus() != 200) {
std.debug.print("Failed.\n", .{});
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
// }
// }
var i: i32 = 0;
var id: i32 = 0;
var created_at: [:0]const u8 = "";
var updated_at: [:0]const u8 = "";
var account_id: i32 = 0;
var address_line1: [:0]const u8 = "";
var address_line2: [:0]const u8 = "";
var appointment_date: [:0]const u8 = "";
var appt_call: bool = false;
var available_date: [:0]const u8 = "";
var average_spending: [:0]const u8 = "";
var be_back_date: [:0]const u8 = "";
var birth_date: [:0]const u8 = "";
var business: [:0]const u8 = "";
var call_date: [:0]const u8 = "";
var city: [:0]const u8 = "";
var civility: [:0]const u8 = "";
var code: [:0]const u8 = "";
var country: [:0]const u8 = "";
var csi_date: [:0]const u8 = "";
var delivered_by_id: [:0]const u8 = "";
var delivered_date: [:0]const u8 = "";
var delivery_date: [:0]const u8 = "";
var division: [:0]const u8 = "";
var end_service_date: [:0]const u8 = "";
var first_name: [:0]const u8 = "";
var gas: [:0]const u8 = "";
var gender: i32 = 0;
var invoiced: bool = false;
var last_name: [:0]const u8 = "";
var last_visit_date: [:0]const u8 = "";
var locale: [:0]const u8 = "";
var loyalty: [:0]const u8 = "";
var next_visit_date: [:0]const u8 = "";
var odometer_last_visit: [:0]const u8 = "";
var open_work_order_date: [:0]const u8 = "";
var planned_pick_up_date: [:0]const u8 = "";
var postal_code: [:0]const u8 = "";
var prepaid: [:0]const u8 = "";
var prepared: bool = false;
var presented_date: [:0]const u8 = "";
var promised_date: [:0]const u8 = "";
var province: [:0]const u8 = "";
var rating: [:0]const u8 = "";
var reached_client: bool = false;
var refinanced_date: [:0]const u8 = "";
var repair_date: [:0]const u8 = "";
var repair_order: [:0]const u8 = "";
var result: [:0]const u8 = "";
var road_test_date: [:0]const u8 = "";
var sale_date: [:0]const u8 = "";
var second_contact: [:0]const u8 = "";
var second_contact_civility: [:0]const u8 = "";
var segment: [:0]const u8 = "";
var service_cleaned: bool = false;
var service_interval_km: [:0]const u8 = "";
var service_monthly_km: [:0]const u8 = "";
var service_process_intention: [:0]const u8 = "";
var service_process_transport: [:0]const u8 = "";
var service_process_walk_around: [:0]const u8 = "";
var sex: [:0]const u8 = "";
var source: [:0]const u8 = "";
var status: [:0]const u8 = "";
var storage: [:0]const u8 = "";
var take_over_date: [:0]const u8 = "";
var v_type: [:0]const u8 = "";
var unsubscribe_all_date: [:0]const u8 = "";
var unsubscribe_call_date: [:0]const u8 = "";
var unsubscribe_email_date: [:0]const u8 = "";
var unsubscribe_sms_date: [:0]const u8 = "";
var work_order: [:0]const u8 = "";
var account_created_at: [:0]const u8 = "";
var account_updated_at: [:0]const u8 = "";
var account_partner_id: i32 = 0;
var account_activity_report: bool = false;
var account_commercial: bool = false;
var account_event: bool = false;
var account_leadxpress: bool = false;
var account_loyalty: bool = false;
var account_phone_up: bool = false;
var account_renewal: bool = false;
var account_sale_table: bool = false;
var account_service: bool = false;
var account_walk_in: bool = false;
var account_webboost: bool = false;
var account_account_manager: bool = false;
var account_activation_date: [:0]const u8 = "";
var account_active: bool = false;
var account_assigned_lead: bool = false;
var account_auto_renewal: bool = false;
var account_auto_renewal_new: bool = false;
var account_auto_renewal_used: bool = false;
var account_automation: bool = false;
var account_bdc_advisor: bool = false;
var account_calendar_options: bool = false;
var account_client_card_fields_process_gas: bool = false;
var account_client_card_fields_process_recorded: bool = false;
var account_client_card_fields_process_available: bool = false;
var account_client_card_fields_process_discounted: bool = false;
var account_client_card_fields_commercial_profit: bool = false;
var account_client_card_fields_commercial_exclude: bool = false;
var account_client_card_fields_commercial_meeting: bool = false;
var account_client_card_fields_performance_deposit: bool = false;
var account_client_card_fields_performance_refinanced: bool = false;
var account_client_card_fields_performance_dealer_tour: bool = false;
var account_client_card_fields_performance_walk_around: bool = false;
var account_client_card_fields_performance_qualification: bool = false;
var account_client_card_fields_performance_twenty_four_hour: bool = false;
var account_client_card_fields_general_info_budget: bool = false;
var account_client_card_fields_general_info_sector: bool = false;
var account_client_card_fields_general_info_custom_1: bool = false;
var account_client_card_fields_general_info_custom_2: bool = false;
var account_client_card_fields_general_info_custom_3: bool = false;
var account_client_card_fields_general_info_custom_4: bool = false;
var account_client_card_fields_general_info_custom_5: bool = false;
var account_client_card_fields_general_info_custom_6: bool = false;
var account_client_card_fields_general_info_custom_7: bool = false;
var account_client_card_fields_general_info_custom_8: bool = false;
var account_client_card_fields_general_info_custom_9: bool = false;
var account_client_card_fields_general_info_custom_10: bool = false;
var account_client_card_fields_general_info_communication_preference: bool = false;
var account_client_card_fields_wanted_vehicle_vin: bool = false;
var account_client_card_fields_wanted_vehicle_fuel: bool = false;
var account_client_card_fields_wanted_vehicle_rate: bool = false;
var account_client_card_fields_wanted_vehicle_term: bool = false;
var account_client_card_fields_wanted_vehicle_tire: bool = false;
var account_client_card_fields_wanted_vehicle_year: bool = false;
var account_client_card_fields_wanted_vehicle_color: bool = false;
var account_client_card_fields_wanted_vehicle_price: bool = false;
var account_client_card_fields_wanted_vehicle_stock: bool = false;
var account_client_card_fields_wanted_vehicle_total: bool = false;
var account_client_card_fields_wanted_vehicle_budget: bool = false;
var account_client_card_fields_wanted_vehicle_engine: bool = false;
var account_client_card_fields_wanted_vehicle_length: bool = false;
var account_client_card_fields_wanted_vehicle_profit: bool = false;
var account_client_card_fields_wanted_vehicle_suffix: bool = false;
var account_client_card_fields_wanted_vehicle_weight: bool = false;
var account_client_card_fields_wanted_vehicle_comment: bool = false;
var account_client_card_fields_wanted_vehicle_mileage: bool = false;
var account_client_card_fields_wanted_vehicle_payment: bool = false;
var account_client_card_fields_wanted_vehicle_body_type: bool = false;
var account_client_card_fields_wanted_vehicle_category: bool = false;
var account_client_card_fields_wanted_vehicle_modality: bool = false;
var account_client_card_fields_wanted_vehicle_residual: bool = false;
var account_client_card_fields_wanted_vehicle_sleeping: bool = false;
var account_client_card_fields_wanted_vehicle_warranty: bool = false;
var account_client_card_fields_wanted_vehicle_frequency: bool = false;
var account_client_card_fields_wanted_vehicle_accessories: bool = false;
var account_client_card_fields_wanted_vehicle_category_rv: bool = false;
var account_client_card_fields_wanted_vehicle_preparation: bool = false;
var account_client_card_fields_wanted_vehicle_initial_cash: bool = false;
var account_client_card_fields_wanted_vehicle_offer_number: bool = false;
var account_client_card_fields_wanted_vehicle_order_number: bool = false;
var account_client_card_fields_wanted_vehicle_transmission: bool = false;
var account_client_card_fields_wanted_vehicle_documentation: bool = false;
var account_client_card_fields_wanted_vehicle_driving_wheels: bool = false;
var account_client_card_fields_wanted_vehicle_color_exterior: bool = false;
var account_client_card_fields_wanted_vehicle_color_interior: bool = false;
var account_client_card_fields_wanted_vehicle_allowed_mileage: bool = false;
var account_client_card_fields_wanted_vehicle_security_deposit: bool = false;
var account_client_card_fields_wanted_vehicle_end_contract_date: bool = false;
var account_client_card_fields_exchange_vehicle_vin: bool = false;
var account_client_card_fields_exchange_vehicle_fuel: bool = false;
var account_client_card_fields_exchange_vehicle_link: bool = false;
var account_client_card_fields_exchange_vehicle_rate: bool = false;
var account_client_card_fields_exchange_vehicle_term: bool = false;
var account_client_card_fields_exchange_vehicle_year: bool = false;
var account_client_card_fields_exchange_vehicle_color: bool = false;
var account_client_card_fields_exchange_vehicle_price: bool = false;
var account_client_card_fields_exchange_vehicle_stock: bool = false;
var account_client_card_fields_exchange_vehicle_value: bool = false;
var account_client_card_fields_exchange_vehicle_budget: bool = false;
var account_client_card_fields_exchange_vehicle_engine: bool = false;
var account_client_card_fields_exchange_vehicle_length: bool = false;
var account_client_card_fields_exchange_vehicle_profit: bool = false;
var account_client_card_fields_exchange_vehicle_suffix: bool = false;
var account_client_card_fields_exchange_vehicle_weight: bool = false;
var account_client_card_fields_exchange_vehicle_balance: bool = false;
var account_client_card_fields_exchange_vehicle_comment: bool = false;
var account_client_card_fields_exchange_vehicle_mileage: bool = false;
var account_client_card_fields_exchange_vehicle_payment: bool = false;
var account_client_card_fields_exchange_vehicle_renewal: bool = false;
var account_client_card_fields_exchange_vehicle_sold_by: bool = false;
var account_client_card_fields_exchange_vehicle_body_type: bool = false;
var account_client_card_fields_exchange_vehicle_category: bool = false;
var account_client_card_fields_exchange_vehicle_modality: bool = false;
var account_client_card_fields_exchange_vehicle_residual: bool = false;
var account_client_card_fields_exchange_vehicle_sleeping: bool = false;
var account_client_card_fields_exchange_vehicle_warranty: bool = false;
var account_client_card_fields_exchange_vehicle_condition: bool = false;
var account_client_card_fields_exchange_vehicle_frequency: bool = false;
var account_client_card_fields_exchange_vehicle_intention: bool = false;
var account_client_card_fields_exchange_vehicle_refinance: bool = false;
var account_client_card_fields_exchange_vehicle_requested: bool = false;
var account_client_card_fields_exchange_vehicle_sold_date: bool = false;
var account_client_card_fields_exchange_vehicle_category_rv: bool = false;
var account_client_card_fields_exchange_vehicle_institution: bool = false;
var account_client_card_fields_exchange_vehicle_initial_cash: bool = false;
var account_client_card_fields_exchange_vehicle_offer_number: bool = false;
var account_client_card_fields_exchange_vehicle_transmission: bool = false;
var account_client_card_fields_exchange_vehicle_driving_wheels: bool = false;
var account_client_card_fields_exchange_vehicle_color_exterior: bool = false;
var account_client_card_fields_exchange_vehicle_color_interior: bool = false;
var account_client_card_fields_exchange_vehicle_allowed_mileage: bool = false;
var account_client_card_fields_exchange_vehicle_security_deposit: bool = false;
var account_client_card_fields_exchange_vehicle_end_contract_date: bool = false;
var account_client_number: bool = false;
var account_confirmation_appt: bool = false;
var account_credit: bool = false;
var account_csi: bool = false;
var account_csi_used: bool = false;
var account_default_deliveryman_user_id: [:0]const u8 = "";
var account_delivered_by: bool = false;
var account_disable_communication_audio: bool = false;
var account_duplicates: bool = false;
var account_guest_action: bool = false;
var account_email_client: bool = false;
var account_in_turn: bool = false;
var account_in_turn_director_management: bool = false;
var account_leads_other_division: bool = false;
var account_leadxpress_option_priority: i32 = 0;
var account_leadxpress_option_reminder_frequency: i32 = 0;
var account_leadxpress_option_reminder_recurrence: i32 = 0;
var account_leadxpress_option_schedule_account: bool = false;
var account_leadxpress_option_schedule_advisor: bool = false;
var account_limited_audio_access: bool = false;
var account_logo: [:0]const u8 = "";
var account_logo_en: [:0]const u8 = "";
var account_mandatory_coordinate: bool = false;
var account_manually_status: bool = false;
var account_merge_rule: [:0]const u8 = "";
var account_month_start_day: i32 = 0;
var account_name: [:0]const u8 = "";
var account_niotext: bool = false;
var account_niotext_phone: bool = false;
var account_phone: [:0]const u8 = "";
var account_power_sport: bool = false;
var account_process: bool = false;
var account_recreative_special: bool = false;
var account_result_date_validation: bool = false;
var account_sale_accessories: bool = false;
var account_sale_by_phone: bool = false;
var account_sale_date_month: bool = false;
var account_sale_table_options_accessory_column: bool = false;
var account_sale_table_options_commercial_column: bool = false;
var account_sale_table_options_division_grouped_total_column: bool = false;
var account_sale_validation: bool = false;
var account_scan: bool = false;
var account_stock_required_for_sale: bool = false;
var account_take_over_director: bool = false;
var account_trade_report: bool = false;
var account_unrestricted_assignment: bool = false;
var account_unsubscribe: bool = false;
var account_untreated_lead: bool = false;
var account_vehicle_model_text: bool = false;
var account_vehicle_text: bool = false;
var account_verified_sale: bool = false;
var account_vin_decoder: bool = false;
var account_waiting_sale_date: [:0]const u8 = "";
var account_waiting_sale_option: bool = false;
var advisor: [:0]const u8 = "";
var j: i32 = 0;
var count_j: i32 = 0;
var lead_id: i32 = 0;
var address: [:0]const u8 = "";
var valid: bool = false;
var extension: [:0]const u8 = "";
var number: [:0]const u8 = "";
var validated: bool = false;
var mobile: bool = false;
var accessories: [:0]const u8 = "";
var allowed_odometer: [:0]const u8 = "";
var balance: i32 = 0;
var budget_max: [:0]const u8 = "";
var budget_min: [:0]const u8 = "";
var cash_down: [:0]const u8 = "";
var category: [:0]const u8 = "";
var category_rv: [:0]const u8 = "";
var client_number: [:0]const u8 = "";
var color_exterior: [:0]const u8 = "";
var color_interior: [:0]const u8 = "";
var comment: [:0]const u8 = "";
var condition: [:0]const u8 = "";
var end_contract_date: [:0]const u8 = "";
var end_warranty_date: [:0]const u8 = "";
var engine: [:0]const u8 = "";
var extended_warranty: [:0]const u8 = "";
var fuel: [:0]const u8 = "";
var length_max: [:0]const u8 = "";
var length_min: [:0]const u8 = "";
var license_plate: [:0]const u8 = "";
var make: [:0]const u8 = "";
var modality: [:0]const u8 = "";
var model: [:0]const u8 = "";
var odometer: [:0]const u8 = "";
var offer_number: [:0]const u8 = "";
var v_option: [:0]const u8 = "";
var order_number: [:0]const u8 = "";
var payment: [:0]const u8 = "";
var payment_frequency: [:0]const u8 = "";
var preparation: [:0]const u8 = "";
var price: [:0]const u8 = "";
var profit: [:0]const u8 = "";
var purchase_date: [:0]const u8 = "";
var rate: [:0]const u8 = "";
var recall: [:0]const u8 = "";
var recorded_date: [:0]const u8 = "";
var residual: [:0]const u8 = "";
var security_deposit: [:0]const u8 = "";
var sleeping: [:0]const u8 = "";
var sold: bool = false;
var sold_by: [:0]const u8 = "";
var sold_date: [:0]const u8 = "";
var stock: [:0]const u8 = "";
var stock_state: [:0]const u8 = "";
var term: [:0]const u8 = "";
var tire: bool = false;
var transmission: [:0]const u8 = "";
var trim: [:0]const u8 = "";
var url: [:0]const u8 = "";
var value: [:0]const u8 = "";
var vin: [:0]const u8 = "";
var warranty: [:0]const u8 = "";
var weight: [:0]const u8 = "";
var year: [:0]const u8 = "";
var year_max: [:0]const u8 = "";
var year_min: [:0]const u8 = "";
_ = try json_response.stringOf(alloc, "links.first");
_ = try json_response.stringOf(alloc, "links.last");
_ = try json_response.stringOf(alloc, "links.prev");
_ = try json_response.stringOf(alloc, "links.next");
_ = json_response.intOf("meta.current_page");
_ = json_response.intOf("meta.from");
_ = json_response.intOf("meta.last_page");
_ = try json_response.stringOf(alloc, "meta.path");
_ = json_response.intOf("meta.per_page");
_ = json_response.intOf("meta.to");
_ = json_response.intOf("meta.total");
i = 0;
const count_i = json_response.sizeOfArray("data");
while (i < count_i) {
json_response.setI(i);
id = json_response.intOf("data[i].id");
created_at = try json_response.stringOf(alloc, "data[i].created_at");
updated_at = try json_response.stringOf(alloc, "data[i].updated_at");
account_id = json_response.intOf("data[i].account_id");
address_line1 = try json_response.stringOf(alloc, "data[i].address_line1");
address_line2 = try json_response.stringOf(alloc, "data[i].address_line2");
appointment_date = try json_response.stringOf(alloc, "data[i].appointment_date");
appt_call = json_response.boolOf("data[i].appt_call");
available_date = try json_response.stringOf(alloc, "data[i].available_date");
average_spending = try json_response.stringOf(alloc, "data[i].average_spending");
be_back_date = try json_response.stringOf(alloc, "data[i].be_back_date");
birth_date = try json_response.stringOf(alloc, "data[i].birth_date");
business = try json_response.stringOf(alloc, "data[i].business");
call_date = try json_response.stringOf(alloc, "data[i].call_date");
city = try json_response.stringOf(alloc, "data[i].city");
civility = try json_response.stringOf(alloc, "data[i].civility");
code = try json_response.stringOf(alloc, "data[i].code");
country = try json_response.stringOf(alloc, "data[i].country");
csi_date = try json_response.stringOf(alloc, "data[i].csi_date");
delivered_by_id = try json_response.stringOf(alloc, "data[i].delivered_by_id");
delivered_date = try json_response.stringOf(alloc, "data[i].delivered_date");
delivery_date = try json_response.stringOf(alloc, "data[i].delivery_date");
division = try json_response.stringOf(alloc, "data[i].division");
end_service_date = try json_response.stringOf(alloc, "data[i].end_service_date");
first_name = try json_response.stringOf(alloc, "data[i].first_name");
gas = try json_response.stringOf(alloc, "data[i].gas");
gender = json_response.intOf("data[i].gender");
invoiced = json_response.boolOf("data[i].invoiced");
last_name = try json_response.stringOf(alloc, "data[i].last_name");
last_visit_date = try json_response.stringOf(alloc, "data[i].last_visit_date");
locale = try json_response.stringOf(alloc, "data[i].locale");
loyalty = try json_response.stringOf(alloc, "data[i].loyalty");
next_visit_date = try json_response.stringOf(alloc, "data[i].next_visit_date");
odometer_last_visit = try json_response.stringOf(alloc, "data[i].odometer_last_visit");
open_work_order_date = try json_response.stringOf(alloc, "data[i].open_work_order_date");
planned_pick_up_date = try json_response.stringOf(alloc, "data[i].planned_pick_up_date");
postal_code = try json_response.stringOf(alloc, "data[i].postal_code");
prepaid = try json_response.stringOf(alloc, "data[i].prepaid");
prepared = json_response.boolOf("data[i].prepared");
presented_date = try json_response.stringOf(alloc, "data[i].presented_date");
promised_date = try json_response.stringOf(alloc, "data[i].promised_date");
province = try json_response.stringOf(alloc, "data[i].province");
rating = try json_response.stringOf(alloc, "data[i].rating");
reached_client = json_response.boolOf("data[i].reached_client");
refinanced_date = try json_response.stringOf(alloc, "data[i].refinanced_date");
repair_date = try json_response.stringOf(alloc, "data[i].repair_date");
repair_order = try json_response.stringOf(alloc, "data[i].repair_order");
result = try json_response.stringOf(alloc, "data[i].result");
road_test_date = try json_response.stringOf(alloc, "data[i].road_test_date");
sale_date = try json_response.stringOf(alloc, "data[i].sale_date");
second_contact = try json_response.stringOf(alloc, "data[i].second_contact");
second_contact_civility = try json_response.stringOf(alloc, "data[i].second_contact_civility");
segment = try json_response.stringOf(alloc, "data[i].segment");
service_cleaned = json_response.boolOf("data[i].service_cleaned");
service_interval_km = try json_response.stringOf(alloc, "data[i].service_interval_km");
service_monthly_km = try json_response.stringOf(alloc, "data[i].service_monthly_km");
service_process_intention = try json_response.stringOf(alloc, "data[i].service_process.intention");
service_process_transport = try json_response.stringOf(alloc, "data[i].service_process.transport");
service_process_walk_around = try json_response.stringOf(alloc, "data[i].service_process.walk_around");
sex = try json_response.stringOf(alloc, "data[i].sex");
source = try json_response.stringOf(alloc, "data[i].source");
status = try json_response.stringOf(alloc, "data[i].status");
storage = try json_response.stringOf(alloc, "data[i].storage");
take_over_date = try json_response.stringOf(alloc, "data[i].take_over_date");
v_type = try json_response.stringOf(alloc, "data[i].type");
unsubscribe_all_date = try json_response.stringOf(alloc, "data[i].unsubscribe_all_date");
unsubscribe_call_date = try json_response.stringOf(alloc, "data[i].unsubscribe_call_date");
unsubscribe_email_date = try json_response.stringOf(alloc, "data[i].unsubscribe_email_date");
unsubscribe_sms_date = try json_response.stringOf(alloc, "data[i].unsubscribe_sms_date");
work_order = try json_response.stringOf(alloc, "data[i].work_order");
account_id = json_response.intOf("data[i].account.id");
account_created_at = try json_response.stringOf(alloc, "data[i].account.created_at");
account_updated_at = try json_response.stringOf(alloc, "data[i].account.updated_at");
account_partner_id = json_response.intOf("data[i].account.partner_id");
account_activity_report = json_response.boolOf("data[i].account.activity_report");
account_commercial = json_response.boolOf("data[i].account.commercial");
account_event = json_response.boolOf("data[i].account.event");
account_leadxpress = json_response.boolOf("data[i].account.leadxpress");
account_loyalty = json_response.boolOf("data[i].account.loyalty");
account_phone_up = json_response.boolOf("data[i].account.phone_up");
account_renewal = json_response.boolOf("data[i].account.renewal");
account_sale_table = json_response.boolOf("data[i].account.sale_table");
account_service = json_response.boolOf("data[i].account.service");
account_walk_in = json_response.boolOf("data[i].account.walk_in");
account_webboost = json_response.boolOf("data[i].account.webboost");
account_account_manager = json_response.boolOf("data[i].account.account_manager");
account_activation_date = try json_response.stringOf(alloc, "data[i].account.activation_date");
account_active = json_response.boolOf("data[i].account.active");
account_assigned_lead = json_response.boolOf("data[i].account.assigned_lead");
account_auto_renewal = json_response.boolOf("data[i].account.auto_renewal");
account_auto_renewal_new = json_response.boolOf("data[i].account.auto_renewal_new");
account_auto_renewal_used = json_response.boolOf("data[i].account.auto_renewal_used");
account_automation = json_response.boolOf("data[i].account.automation");
account_bdc_advisor = json_response.boolOf("data[i].account.bdc_advisor");
account_calendar_options = json_response.boolOf("data[i].account.calendar_options");
account_client_card_fields_process_gas = json_response.boolOf("data[i].account.client_card_fields.process.gas");
account_client_card_fields_process_recorded = json_response.boolOf("data[i].account.client_card_fields.process.recorded");
account_client_card_fields_process_available = json_response.boolOf("data[i].account.client_card_fields.process.available");
account_client_card_fields_process_discounted = json_response.boolOf("data[i].account.client_card_fields.process.discounted");
account_client_card_fields_commercial_profit = json_response.boolOf("data[i].account.client_card_fields.commercial.profit");
account_client_card_fields_commercial_exclude = json_response.boolOf("data[i].account.client_card_fields.commercial.exclude");
account_client_card_fields_commercial_meeting = json_response.boolOf("data[i].account.client_card_fields.commercial.meeting");
account_client_card_fields_performance_deposit = json_response.boolOf("data[i].account.client_card_fields.performance.deposit");
account_client_card_fields_performance_refinanced = json_response.boolOf("data[i].account.client_card_fields.performance.refinanced");
account_client_card_fields_performance_dealer_tour = json_response.boolOf("data[i].account.client_card_fields.performance.dealer_tour");
account_client_card_fields_performance_walk_around = json_response.boolOf("data[i].account.client_card_fields.performance.walk_around");
account_client_card_fields_performance_qualification = json_response.boolOf("data[i].account.client_card_fields.performance.qualification");
account_client_card_fields_performance_twenty_four_hour = json_response.boolOf("data[i].account.client_card_fields.performance.twenty_four_hour");
account_client_card_fields_general_info_budget = json_response.boolOf("data[i].account.client_card_fields.general_info.budget");
account_client_card_fields_general_info_sector = json_response.boolOf("data[i].account.client_card_fields.general_info.sector");
account_client_card_fields_general_info_custom_1 = json_response.boolOf("data[i].account.client_card_fields.general_info.custom_1");
account_client_card_fields_general_info_custom_2 = json_response.boolOf("data[i].account.client_card_fields.general_info.custom_2");
account_client_card_fields_general_info_custom_3 = json_response.boolOf("data[i].account.client_card_fields.general_info.custom_3");
account_client_card_fields_general_info_custom_4 = json_response.boolOf("data[i].account.client_card_fields.general_info.custom_4");
account_client_card_fields_general_info_custom_5 = json_response.boolOf("data[i].account.client_card_fields.general_info.custom_5");
account_client_card_fields_general_info_custom_6 = json_response.boolOf("data[i].account.client_card_fields.general_info.custom_6");
account_client_card_fields_general_info_custom_7 = json_response.boolOf("data[i].account.client_card_fields.general_info.custom_7");
account_client_card_fields_general_info_custom_8 = json_response.boolOf("data[i].account.client_card_fields.general_info.custom_8");
account_client_card_fields_general_info_custom_9 = json_response.boolOf("data[i].account.client_card_fields.general_info.custom_9");
account_client_card_fields_general_info_custom_10 = json_response.boolOf("data[i].account.client_card_fields.general_info.custom_10");
account_client_card_fields_general_info_communication_preference = json_response.boolOf("data[i].account.client_card_fields.general_info.communication_preference");
account_client_card_fields_wanted_vehicle_vin = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.vin");
account_client_card_fields_wanted_vehicle_fuel = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.fuel");
account_client_card_fields_wanted_vehicle_rate = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.rate");
account_client_card_fields_wanted_vehicle_term = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.term");
account_client_card_fields_wanted_vehicle_tire = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.tire");
account_client_card_fields_wanted_vehicle_year = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.year");
account_client_card_fields_wanted_vehicle_color = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.color");
account_client_card_fields_wanted_vehicle_price = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.price");
account_client_card_fields_wanted_vehicle_stock = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.stock");
account_client_card_fields_wanted_vehicle_total = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.total");
account_client_card_fields_wanted_vehicle_budget = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.budget");
account_client_card_fields_wanted_vehicle_engine = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.engine");
account_client_card_fields_wanted_vehicle_length = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.length");
account_client_card_fields_wanted_vehicle_profit = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.profit");
account_client_card_fields_wanted_vehicle_suffix = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.suffix");
account_client_card_fields_wanted_vehicle_weight = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.weight");
account_client_card_fields_wanted_vehicle_comment = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.comment");
account_client_card_fields_wanted_vehicle_mileage = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.mileage");
account_client_card_fields_wanted_vehicle_payment = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.payment");
account_client_card_fields_wanted_vehicle_body_type = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.bodyType");
account_client_card_fields_wanted_vehicle_category = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.category");
account_client_card_fields_wanted_vehicle_modality = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.modality");
account_client_card_fields_wanted_vehicle_residual = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.residual");
account_client_card_fields_wanted_vehicle_sleeping = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.sleeping");
account_client_card_fields_wanted_vehicle_warranty = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.warranty");
account_client_card_fields_wanted_vehicle_frequency = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.frequency");
account_client_card_fields_wanted_vehicle_accessories = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.accessories");
account_client_card_fields_wanted_vehicle_category_rv = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.category_rv");
account_client_card_fields_wanted_vehicle_preparation = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.preparation");
account_client_card_fields_wanted_vehicle_initial_cash = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.initial_cash");
account_client_card_fields_wanted_vehicle_offer_number = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.offer_number");
account_client_card_fields_wanted_vehicle_order_number = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.order_number");
account_client_card_fields_wanted_vehicle_transmission = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.transmission");
account_client_card_fields_wanted_vehicle_documentation = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.documentation");
account_client_card_fields_wanted_vehicle_driving_wheels = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.drivingWheels");
account_client_card_fields_wanted_vehicle_color_exterior = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.color_exterior");
account_client_card_fields_wanted_vehicle_color_interior = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.color_interior");
account_client_card_fields_wanted_vehicle_allowed_mileage = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.allowed_mileage");
account_client_card_fields_wanted_vehicle_security_deposit = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.security_deposit");
account_client_card_fields_wanted_vehicle_end_contract_date = json_response.boolOf("data[i].account.client_card_fields.wanted_vehicle.end_contract_date");
account_client_card_fields_exchange_vehicle_vin = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.vin");
account_client_card_fields_exchange_vehicle_fuel = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.fuel");
account_client_card_fields_exchange_vehicle_link = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.link");
account_client_card_fields_exchange_vehicle_rate = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.rate");
account_client_card_fields_exchange_vehicle_term = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.term");
account_client_card_fields_exchange_vehicle_year = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.year");
account_client_card_fields_exchange_vehicle_color = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.color");
account_client_card_fields_exchange_vehicle_price = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.price");
account_client_card_fields_exchange_vehicle_stock = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.stock");
account_client_card_fields_exchange_vehicle_value = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.value");
account_client_card_fields_exchange_vehicle_budget = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.budget");
account_client_card_fields_exchange_vehicle_engine = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.engine");
account_client_card_fields_exchange_vehicle_length = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.length");
account_client_card_fields_exchange_vehicle_profit = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.profit");
account_client_card_fields_exchange_vehicle_suffix = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.suffix");
account_client_card_fields_exchange_vehicle_weight = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.weight");
account_client_card_fields_exchange_vehicle_balance = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.balance");
account_client_card_fields_exchange_vehicle_comment = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.comment");
account_client_card_fields_exchange_vehicle_mileage = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.mileage");
account_client_card_fields_exchange_vehicle_payment = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.payment");
account_client_card_fields_exchange_vehicle_renewal = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.renewal");
account_client_card_fields_exchange_vehicle_sold_by = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.sold_by");
account_client_card_fields_exchange_vehicle_body_type = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.bodyType");
account_client_card_fields_exchange_vehicle_category = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.category");
account_client_card_fields_exchange_vehicle_modality = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.modality");
account_client_card_fields_exchange_vehicle_residual = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.residual");
account_client_card_fields_exchange_vehicle_sleeping = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.sleeping");
account_client_card_fields_exchange_vehicle_warranty = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.warranty");
account_client_card_fields_exchange_vehicle_condition = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.condition");
account_client_card_fields_exchange_vehicle_frequency = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.frequency");
account_client_card_fields_exchange_vehicle_intention = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.intention");
account_client_card_fields_exchange_vehicle_refinance = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.refinance");
account_client_card_fields_exchange_vehicle_requested = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.requested");
account_client_card_fields_exchange_vehicle_sold_date = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.sold_date");
account_client_card_fields_exchange_vehicle_category_rv = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.category_rv");
account_client_card_fields_exchange_vehicle_institution = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.institution");
account_client_card_fields_exchange_vehicle_initial_cash = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.initial_cash");
account_client_card_fields_exchange_vehicle_offer_number = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.offer_number");
account_client_card_fields_exchange_vehicle_transmission = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.transmission");
account_client_card_fields_exchange_vehicle_driving_wheels = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.drivingWheels");
account_client_card_fields_exchange_vehicle_color_exterior = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.color_exterior");
account_client_card_fields_exchange_vehicle_color_interior = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.color_interior");
account_client_card_fields_exchange_vehicle_allowed_mileage = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.allowed_mileage");
account_client_card_fields_exchange_vehicle_security_deposit = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.security_deposit");
account_client_card_fields_exchange_vehicle_end_contract_date = json_response.boolOf("data[i].account.client_card_fields.exchange_vehicle.end_contract_date");
account_client_number = json_response.boolOf("data[i].account.client_number");
account_confirmation_appt = json_response.boolOf("data[i].account.confirmation_appt");
account_credit = json_response.boolOf("data[i].account.credit");
account_csi = json_response.boolOf("data[i].account.csi");
account_csi_used = json_response.boolOf("data[i].account.csi_used");
account_default_deliveryman_user_id = try json_response.stringOf(alloc, "data[i].account.default_deliveryman_user_id");
account_delivered_by = json_response.boolOf("data[i].account.delivered_by");
account_disable_communication_audio = json_response.boolOf("data[i].account.disable_communication_audio");
account_duplicates = json_response.boolOf("data[i].account.duplicates");
account_guest_action = json_response.boolOf("data[i].account.guest_action");
account_email_client = json_response.boolOf("data[i].account.email_client");
account_in_turn = json_response.boolOf("data[i].account.in_turn");
account_in_turn_director_management = json_response.boolOf("data[i].account.in_turn_director_management");
account_leads_other_division = json_response.boolOf("data[i].account.leads_other_division");
account_leadxpress_option_priority = json_response.intOf("data[i].account.leadxpress_option.priority");
account_leadxpress_option_reminder_frequency = json_response.intOf("data[i].account.leadxpress_option.reminder.frequency");
account_leadxpress_option_reminder_recurrence = json_response.intOf("data[i].account.leadxpress_option.reminder.recurrence");
account_leadxpress_option_schedule_account = json_response.boolOf("data[i].account.leadxpress_option.schedule.account");
account_leadxpress_option_schedule_advisor = json_response.boolOf("data[i].account.leadxpress_option.schedule.advisor");
account_limited_audio_access = json_response.boolOf("data[i].account.limited_audio_access");
account_logo = try json_response.stringOf(alloc, "data[i].account.logo");
account_logo_en = try json_response.stringOf(alloc, "data[i].account.logo_en");
account_mandatory_coordinate = json_response.boolOf("data[i].account.mandatory_coordinate");
account_manually_status = json_response.boolOf("data[i].account.manually_status");
account_merge_rule = try json_response.stringOf(alloc, "data[i].account.merge_rule");
account_month_start_day = json_response.intOf("data[i].account.month_start_day");
account_name = try json_response.stringOf(alloc, "data[i].account.name");
account_niotext = json_response.boolOf("data[i].account.niotext");
account_niotext_phone = json_response.boolOf("data[i].account.niotext_phone");
account_phone = try json_response.stringOf(alloc, "data[i].account.phone");
account_power_sport = json_response.boolOf("data[i].account.power_sport");
account_process = json_response.boolOf("data[i].account.process");
account_recreative_special = json_response.boolOf("data[i].account.recreative_special");
account_result_date_validation = json_response.boolOf("data[i].account.result_date_validation");
account_sale_accessories = json_response.boolOf("data[i].account.sale_accessories");
account_sale_by_phone = json_response.boolOf("data[i].account.sale_by_phone");
account_sale_date_month = json_response.boolOf("data[i].account.sale_date_month");
account_sale_table_options_accessory_column = json_response.boolOf("data[i].account.sale_table_options.accessory_column");
account_sale_table_options_commercial_column = json_response.boolOf("data[i].account.sale_table_options.commercial_column");
account_sale_table_options_division_grouped_total_column = json_response.boolOf("data[i].account.sale_table_options.division_grouped_total_column");
account_sale_validation = json_response.boolOf("data[i].account.sale_validation");
account_scan = json_response.boolOf("data[i].account.scan");
account_stock_required_for_sale = json_response.boolOf("data[i].account.stock_required_for_sale");
account_take_over_director = json_response.boolOf("data[i].account.take_over_director");
account_trade_report = json_response.boolOf("data[i].account.trade_report");
account_unrestricted_assignment = json_response.boolOf("data[i].account.unrestricted_assignment");
account_unsubscribe = json_response.boolOf("data[i].account.unsubscribe");
account_untreated_lead = json_response.boolOf("data[i].account.untreated_lead");
account_vehicle_model_text = json_response.boolOf("data[i].account.vehicle_model_text");
account_vehicle_text = json_response.boolOf("data[i].account.vehicle_text");
account_verified_sale = json_response.boolOf("data[i].account.verified_sale");
account_vin_decoder = json_response.boolOf("data[i].account.vin_decoder");
account_waiting_sale_date = try json_response.stringOf(alloc, "data[i].account.waiting_sale_date");
account_waiting_sale_option = json_response.boolOf("data[i].account.waiting_sale_option");
advisor = try json_response.stringOf(alloc, "data[i].advisor");
j = 0;
count_j = json_response.sizeOfArray("data[i].emails");
while (j < count_j) {
json_response.setJ(j);
id = json_response.intOf("data[i].emails[j].id");
created_at = try json_response.stringOf(alloc, "data[i].emails[j].created_at");
updated_at = try json_response.stringOf(alloc, "data[i].emails[j].updated_at");
lead_id = json_response.intOf("data[i].emails[j].lead_id");
address = try json_response.stringOf(alloc, "data[i].emails[j].address");
v_type = try json_response.stringOf(alloc, "data[i].emails[j].type");
valid = json_response.boolOf("data[i].emails[j].valid");
j = j + 1;
}
j = 0;
count_j = json_response.sizeOfArray("data[i].phones");
while (j < count_j) {
json_response.setJ(j);
id = json_response.intOf("data[i].phones[j].id");
created_at = try json_response.stringOf(alloc, "data[i].phones[j].created_at");
updated_at = try json_response.stringOf(alloc, "data[i].phones[j].updated_at");
lead_id = json_response.intOf("data[i].phones[j].lead_id");
extension = try json_response.stringOf(alloc, "data[i].phones[j].extension");
number = try json_response.stringOf(alloc, "data[i].phones[j].number");
v_type = try json_response.stringOf(alloc, "data[i].phones[j].type");
valid = json_response.boolOf("data[i].phones[j].valid");
validated = json_response.boolOf("data[i].phones[j].validated");
mobile = json_response.boolOf("data[i].phones[j].mobile");
j = j + 1;
}
j = 0;
count_j = json_response.sizeOfArray("data[i].vehicles");
while (j < count_j) {
json_response.setJ(j);
id = json_response.intOf("data[i].vehicles[j].id");
created_at = try json_response.stringOf(alloc, "data[i].vehicles[j].created_at");
updated_at = try json_response.stringOf(alloc, "data[i].vehicles[j].updated_at");
lead_id = json_response.intOf("data[i].vehicles[j].lead_id");
accessories = try json_response.stringOf(alloc, "data[i].vehicles[j].accessories");
allowed_odometer = try json_response.stringOf(alloc, "data[i].vehicles[j].allowed_odometer");
balance = json_response.intOf("data[i].vehicles[j].balance");
budget_max = try json_response.stringOf(alloc, "data[i].vehicles[j].budget_max");
budget_min = try json_response.stringOf(alloc, "data[i].vehicles[j].budget_min");
cash_down = try json_response.stringOf(alloc, "data[i].vehicles[j].cash_down");
category = try json_response.stringOf(alloc, "data[i].vehicles[j].category");
category_rv = try json_response.stringOf(alloc, "data[i].vehicles[j].category_rv");
client_number = try json_response.stringOf(alloc, "data[i].vehicles[j].client_number");
color_exterior = try json_response.stringOf(alloc, "data[i].vehicles[j].color_exterior");
color_interior = try json_response.stringOf(alloc, "data[i].vehicles[j].color_interior");
comment = try json_response.stringOf(alloc, "data[i].vehicles[j].comment");
condition = try json_response.stringOf(alloc, "data[i].vehicles[j].condition");
end_contract_date = try json_response.stringOf(alloc, "data[i].vehicles[j].end_contract_date");
end_warranty_date = try json_response.stringOf(alloc, "data[i].vehicles[j].end_warranty_date");
engine = try json_response.stringOf(alloc, "data[i].vehicles[j].engine");
extended_warranty = try json_response.stringOf(alloc, "data[i].vehicles[j].extended_warranty");
fuel = try json_response.stringOf(alloc, "data[i].vehicles[j].fuel");
length_max = try json_response.stringOf(alloc, "data[i].vehicles[j].length_max");
length_min = try json_response.stringOf(alloc, "data[i].vehicles[j].length_min");
license_plate = try json_response.stringOf(alloc, "data[i].vehicles[j].license_plate");
make = try json_response.stringOf(alloc, "data[i].vehicles[j].make");
modality = try json_response.stringOf(alloc, "data[i].vehicles[j].modality");
model = try json_response.stringOf(alloc, "data[i].vehicles[j].model");
odometer = try json_response.stringOf(alloc, "data[i].vehicles[j].odometer");
offer_number = try json_response.stringOf(alloc, "data[i].vehicles[j].offer_number");
v_option = try json_response.stringOf(alloc, "data[i].vehicles[j].option");
order_number = try json_response.stringOf(alloc, "data[i].vehicles[j].order_number");
payment = try json_response.stringOf(alloc, "data[i].vehicles[j].payment");
payment_frequency = try json_response.stringOf(alloc, "data[i].vehicles[j].payment_frequency");
preparation = try json_response.stringOf(alloc, "data[i].vehicles[j].preparation");
price = try json_response.stringOf(alloc, "data[i].vehicles[j].price");
profit = try json_response.stringOf(alloc, "data[i].vehicles[j].profit");
purchase_date = try json_response.stringOf(alloc, "data[i].vehicles[j].purchase_date");
rate = try json_response.stringOf(alloc, "data[i].vehicles[j].rate");
recall = try json_response.stringOf(alloc, "data[i].vehicles[j].recall");
recorded_date = try json_response.stringOf(alloc, "data[i].vehicles[j].recorded_date");
residual = try json_response.stringOf(alloc, "data[i].vehicles[j].residual");
security_deposit = try json_response.stringOf(alloc, "data[i].vehicles[j].security_deposit");
sleeping = try json_response.stringOf(alloc, "data[i].vehicles[j].sleeping");
sold = json_response.boolOf("data[i].vehicles[j].sold");
sold_by = try json_response.stringOf(alloc, "data[i].vehicles[j].sold_by");
sold_date = try json_response.stringOf(alloc, "data[i].vehicles[j].sold_date");
stock = try json_response.stringOf(alloc, "data[i].vehicles[j].stock");
stock_state = try json_response.stringOf(alloc, "data[i].vehicles[j].stock_state");
term = try json_response.stringOf(alloc, "data[i].vehicles[j].term");
tire = json_response.boolOf("data[i].vehicles[j].tire");
transmission = try json_response.stringOf(alloc, "data[i].vehicles[j].transmission");
trim = try json_response.stringOf(alloc, "data[i].vehicles[j].trim");
v_type = try json_response.stringOf(alloc, "data[i].vehicles[j].type");
url = try json_response.stringOf(alloc, "data[i].vehicles[j].url");
value = try json_response.stringOf(alloc, "data[i].vehicles[j].value");
vin = try json_response.stringOf(alloc, "data[i].vehicles[j].vin");
warranty = try json_response.stringOf(alloc, "data[i].vehicles[j].warranty");
weight = try json_response.stringOf(alloc, "data[i].vehicles[j].weight");
year = try json_response.stringOf(alloc, "data[i].vehicles[j].year");
year_max = try json_response.stringOf(alloc, "data[i].vehicles[j].year_max");
year_min = try json_response.stringOf(alloc, "data[i].vehicles[j].year_min");
j = j + 1;
}
j = 0;
count_j = json_response.sizeOfArray("data[i].products");
while (j < count_j) {
json_response.setJ(j);
j = j + 1;
}
i = i + 1;
}
}