SL JSON Validator

SL JSON Validator

On this page

Overview

The JSON Validator Snap is a Transform type Snap that validates incoming JSON data against a specified JSON Schema. It validates structural, type, and value constraints defined in the schema to prevent content-level errors and improve data quality in SnapLogic pipelines

Snap Type

  • Transform

Prerequisites

None.

Limitations and Known Issues

None.

Snap Views

Type

Format

Number of Views

Examples of Upstream and Downstream Snaps

Description

Type

Format

Number of Views

Examples of Upstream and Downstream Snaps

Description

Input 

Binary / Document

 

  • Min: 0

  • Max: 1

  • File Reader (If view type is Binary)

  • Mapper Snap( (If view type is Document)

Each input document contains data in the JSON format.

Output

Document

  • Min: 1

  • Max: 1

  • Mapper Snap

  • Join Snap

  • Union Snap

Each document contains a corresponding response in the JSON format.

Error

Error handling is a generic way to handle errors without losing data or failing the Snap execution. You can handle the errors that the Snap might encounter when running the Pipeline by choosing one of the following options from the When errors occur list under the Views tab:

  • Stop Pipeline Execution: Stops the current Pipeline execution if the Snap encounters an error.

  • Discard Error Data and Continue: Ignores the error, discards that record, and continues with the remaining records.

  • Route Error Data to Error View: Routes the error data to an error view without stopping the Snap execution.

Learn more about Error handling in Pipelines.

Snap Settings

Parameter Name

Description

Default Value

Example

Parameter Name

Description

Default Value

Example

Label*

The name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your Pipeline.

JSON Validator

JSON Validator

JSON Schema*

The JSON Schema file used as the basis for validating JSON Data. Use the file browser to select or upload a schema

N/A

 

JSON Data

Note:

  • If view type is binary, the binary data will be directly transferred to the JSON Validator snap from upstream snaps.

  • JSON Data is mandatory for Document view

The actual JSON to be validated against the provided schema. This can be the content of incoming documents or a field mapped inside the root incoming document

This setting will be enabled when Input view with type Document is enabled.

$

 

Behaviour

  • The Snap loads the selected JSON Schema and validates each incoming JSON document against it.

  • Documents matching the schema are forwarded to output; mismatches trigger explicit error messages and do not pass downstream.

  • Standard schema features such as type validation, required fields, and value constraints are supported.​

Typical Use Cases

  • Enforcing schema compliance in data ingestion pipelines.

  • Preventing invalid or unexpected JSON payloads from propagating in integrations.

  • Validating API request/response bodies for conformance to published contracts

Snap Pack History

 

 

Release

Snap Pack Version 

Date

Type

Updates

September 2025

main364

Sep 17, 2025

Stable

Updated and certified against the current SnapLogic Platform release.

October 2025

main369

Oct 17, 2025

Stable

Updated and certified against the current SnapLogic Platform release.