# Setting up JSON metadata for an output file

This section describes how to define JSON metadata for an output file.

Now you can drag and drop the file connection or the schema of it from the Repository tree view onto the design workspace as a new tWriteJSONField component or onto an existing component to reuse the metadata. For further information about how to use the centralized metadata in a Job, see [Using centralized metadata in a Job](https://help.qlik.com/talend/en-US/studio-user-guide/8.0/using-centralized-metadata-in-job) and [Setting a repository schema in a Job](https://help.qlik.com/talend/en-US/studio-user-guide/8.0/basic-settings-tab#setting-a-repository-schema-in-a-job_t).

To modify an existing file connection, right-click it from the Repository tree view, and select Edit JSON to open the file metadata setup wizard.

To add a new schema to an existing file connection, right-click the connection from the Repository tree view and select Retrieve Schema from the contextual menu.

Information noteWarning: If you are working on a Git managed project while the Manual lock option is selected in Talend Administration Center, be sure to lock manually your connection in the Repository tree view before retrieving or updating table schemas for it. Otherwise the connection is read-only and the Finish button of the wizard is not operable. For more information about locking and unlocking a project item and on different lock types, see [Working collaboratively on project items](https://help.qlik.com/talend/en-US/studio-user-guide/8.0/working-collaboratively-on-project-items).

To edit an existing file schema, right-click the schema from the Repository tree view and select Edit Schema from the contextual menu.

### In this section

* [Defining general properties of the File JSON connection for an output file](https://help.qlik.com/talend/en-US/studio-user-guide/8.0-R2026-09/defining-general-properties-of-file-json-connection-for-output-file)
* [Setting the type of metadata and loading the template JSON file](https://help.qlik.com/talend/en-US/studio-user-guide/8.0-R2026-09/setting-type-of-metadata-and-loading-template-json-file)
* [Defining the JSON schema of your output file](https://help.qlik.com/talend/en-US/studio-user-guide/8.0-R2026-09/defining-json-schema-of-your-output-file)
* [Finalizing the end schema JSON of your output file](https://help.qlik.com/talend/en-US/studio-user-guide/8.0-R2026-09/finalizing-end-schema-json-of-your-output-file)