Skip to main content
This page describes the JSON-specific properties that appear in the Properties tab of Source and Target gems. These settings are the same for JSON files regardless of which connection type is configured in the gem (for example, S3, SFTP, or SharePoint). If you need details on configuring a Source or Target gem end to end (including all tabs such as Location), see the documentation for the specific file storage connection.
You can also use the upload file feature to use JSON files. These will be stored in the SQL warehouse configured in your fabric.

Properties

Source properties

The following properties are available for the JSON Source gem.

Target properties

The following properties are available for the JSON Target gem.

Schema validation

Prophecy lets you enable schema validation for JSON files in a Source gem. Use schema validation to ensure JSON files conform to a predefined structure before ingesting the data. JSON schema validation works for all file storage connections.

Prerequisites

To use schema validation, you need a JSON Schema file in the same directory as your source file. If your schema uses $ref to reference external schemas, those referenced schema files must also be in the same directory. Learn how to write JSON Schema files.

Set up schema validation

  1. In the Location tab of a Source gem, toggle Enable JSON Schema Validation.
  2. Provide a path to the JSON file that you will use to validate against.
  3. Open the Properties tab.
  4. Click Infer Schema.
If the source file schema matches the validation schema, schema inference will run successfully.

Example

The following example shows a source file and a corresponding validation file that would validate successfully.

Troubleshooting

If the schemas do not match:
  • Schema inference will fail.
  • The Source gem will fail to run.
To troubleshoot, look for the error in the runtime logs. Here is an example error: