# tExtractJSONFields MapReduce properties (deprecated)

Availability-note[Deprecated](https://help.talend.com/r/en-US/Cloud/labels-on-talend-help-center/availability-deprecated)

This content is deprecated.

These properties are used to configure tExtractJSONFields running in the MapReduce Job framework.

The MapReduce tExtractJSONFields component belongs to the Processing family.

The component in this framework is available in all Talend products with Big Data and Talend Data Fabric.

Availability-note[Deprecated](https://help.talend.com/r/en-US/Cloud/labels-on-talend-help-center/availability-deprecated)

This content is deprecated.

The MapReduce framework is deprecated from Talend 7.3 onwards. Use Talend Jobs for Apache Spark to accomplish your integration tasks.

## Basic settings

| Property type | Either Built-In or Repository. |
| --- | --- |
|  | Built-In: No property data stored centrally. |
|  | Repository: Select the repository file where the<br>properties are stored. |
| Schema and Edit<br>Schema | A schema is a row description. It defines the number of fields<br>(columns) to be processed and passed on to the next component. When you create a Spark<br>Job, avoid the reserved word line when naming the<br>fields.<br><br>Click Edit<br>schema to make changes to the schema. If the current schema is of the Repository type, three options are available:<br><br><ul> <li> <p> <span>View schema</span>: choose this                option to view the schema only.</p> </li> <li> <p> <span>Change to built-in property</span>:                choose this option to change the schema to <span>Built-in</span> for local changes.</p> </li> <li> <p> <span>Update repository connection</span>:                choose this option to change the schema stored in the repository and decide whether                to propagate the changes to all the Jobs upon completion. If you just want to                propagate the changes to the current Job, you can select <span>No</span> upon completion and choose this schema metadata                again in the <span>Repository Content</span>                window.</p> </li> </ul> |
|  | Built-In: You create and store the schema locally for this component<br>only. |
|  | Repository: You have already created the schema and stored it in the<br>Repository. You can reuse it in various projects and Job designs. |
| Read by | Select a way of extracting the JSON data in the file.<br><br><ul> <li> <p> <span>Xpath</span>: Extracts the JSON data based on                    the XPath query.</p> </li> <li> <p> <span>JsonPath</span>: Extracts the JSON data based on                    the JSONPath query. Note that it is recommended to read the data by JSONPath in                    order to gain better performance.</p> </li> </ul> |
| JSON field | List of the JSON fields to be extracted. |
| Loop Jasonpath query | Enter the Jsonpath or XPath of the node on which the loop is based.<br><br>Note if you have selected Xpath from the Read by drop-down list, the Loop<br>Xpath query field is displayed instead. |
| Mapping | Complete this table to map the columns defined in the schema to the<br>corresponding JSON nodes.<br><br><ul> <li> <p> <span>Column</span>: The <span>Column</span> cells are automatically filled with the defined schema                    column names.</p> </li> <li> <p> <span>Json query</span>/<span>JSONPath query</span>: Specify the JSONPath node that holds the                    desired data. For more information about JSONPath expressions, see <a href="http://goessner.net/articles/JsonPath/" target="_blank">http://goessner.net/articles/JsonPath/</a>.</p> <p>This column is available only when <span>JsonPath</span> is selected from the <span>Read                        By</span> list.</p> </li> <li> <p> <span>XPath query</span>: Specify the XPath node that                    holds the desired data.</p> <p>This column is available only when <span>Xpath</span> is selected from the <span>Read                        By</span> list.</p> </li> <li> <p> <span>Get Nodes</span>: Select this check box to                    extract the JSON data of all the nodes or select the check box next to a                    specific node to extract the data of that node.</p> <p>This column is available only when <span>Xpath</span> is selected from the <span>Read                        By</span> list.</p> </li> <li> <p> <span>Is Array</span>: select this check box when the                    JSON field to be extracted is an array instead of an object.</p> <p>This column is available only when <span>Xpath</span> is selected from the <span>Read                        By</span> list.</p> </li> </ul> |
| Die on error | Select the check box to stop the execution of the Job when an error<br>occurs.<br><br>Clear the check box to skip any rows on error and complete the process for<br>error-free rows. When errors are skipped, you can collect the rows on error using a Row &gt; Reject link. |

## Advanced settings

| Encoding | Select the encoding from the list or select Custom<br>and define it manually. This field is compulsory for database data handling. The<br>supported encodings depend on the JVM that you are using. For more information, see<br>[https://docs.oracle.com](https://docs.oracle.com/). |
| --- | --- |

## Global Variables

| Global Variables | ERROR\_MESSAGE: the error message generated by the component when an<br>error occurs. This is an After variable and it returns a string. This variable functions<br>only if the Die on error check box<br>is cleared, if the component has this check<br>box.<br><br><br>NB\_LINE: the number<br>of rows read by an input component or transferred to an output component. This is an<br>After variable and it returns an integer.<br><br>A Flow variable functions during the execution of a component<br>while an After variable functions after the execution of the component.<br><br>To fill up a field or expression with a<br>variable, press Ctrl + Space to<br>access the variable list and choose the variable to use from it.<br><br>For further information about variables, see *Talend Studio*<br>*User Guide*. |
| --- | --- |

## Usage

| **Usage rule** | In a<br>Talend<br>Map/Reduce Job, this component is used as an intermediate<br>step and other components used along with it must be Map/Reduce components, too. They<br>generate native Map/Reduce code that can be executed directly in Hadoop.<br><br>You need to use the Hadoop Configuration tab in the<br>Run view to define the connection to a given Hadoop<br>distribution for the whole Job.<br><br>For further information about a<br>Talend<br>Map/Reduce Job, see the sections<br>describing how to create, convert and configure a<br>Talend<br>Map/Reduce Job of the<br>**Talend Big Data Getting Started Guide**.<br><br>Note that in this documentation, unless otherwise<br>explicitly stated, a scenario presents only Standard Jobs,<br>that is to say traditional<br>Talend<br>data integration Jobs, and non Map/Reduce Jobs. |
| --- | --- |