public function to_json($load)
{
if ($load) {
$this->load();
}
$this->process_value();
$field_data = array('id' => $this->get_id(), 'type' => $this->get_type(), 'label' => $this->get_label(), 'name' => $this->get_name(), 'base_name' => $this->get_base_name(), 'value' => $this->get_value(), 'default_value' => $this->get_default_value(), 'help_text' => $this->get_help_text(), 'context' => $this->get_context(), 'required' => $this->is_required(), 'lazyload' => $this->get_lazyload(), 'width' => $this->get_width(), 'classes' => $this->get_classes(), 'conditional_logic' => $this->get_conditional_logic());
return $field_data;
}