# JSON Import to Table

Imports from text or a JSON file to a Database Table.

Action available for the following operating systems:

![](/files/-MAlQBZuuTnc6hyzKSVQ)

### Parameters

General

* **Source type** - Defines the type of the source. It can be one of:
  * 1\. File
  * 2\. Text
* **Source** - The name of source.

{% hint style="info" %}
Source JSON or Source File depending on parameter Source Type. If it is a Source File user must define the complete path to the file, otherwise user must defines the control or variable that stores the JSON File.
{% endhint %}

* **Abort on Error** - This parameter defines if the user wants to abort in case of error or not. It can be one of:
  * 1\. Yes
  * 2\. No
* **Target Table** - The name of the Database Table where that action takes effect.
* **Replace Duplicates** - This parameter defines if the user wants to replace the duplicate values or not. It can be one of:

  * 1\. Yes
  * 2\. No<br>

  <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>This is only for local databases, for online databases duplicate management is not handled in this action</p></div>
* **Trim Strings** - This parameter defines if the user wants to trim the strings or not. It can be one of:
  * 1\. Yes
  * 2\. No

{% hint style="info" %}
For more information of this trim action please see **here (String Functions)**
{% endhint %}

* **Decimal Separator** \<string> - Defines the separator to use on the importation of numeric values.
* **Parent List** \<string> - The name of the parent Item of the JSON file.

Column List

* **Array/Item Name** <*string*> - The name of the JSON Item that user wants to import in the Database Table.
* **Item** <*string*> - The JSON Item to save in Database Table.
* **Type** - The type of the JSON Item to save in Database Table.
* **Value** - The value to save in Database Table.

Default Values

* **Column** - Name of the column that user wants to save a default value.
* **Type** - Type of the default value saved.
* **Source Type** - Type of the source to save, by default, in Database Table.
* **Source** - Value to save, by default, in Database Table.

{% hint style="info" %}
The actions [File Open](https://docs.sysdevmobile.com/kalipso50/action_99.htm) and [File Close](https://docs.sysdevmobile.com/kalipso50/action_104.htm) don't need to be used.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.sysdevmobile.com/kalipso5/developing/form/actions/actions-description/group-code-flow/json-import-to-table.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
