JSON Dataset Validator - Required Fields and Data Types avatar

JSON Dataset Validator - Required Fields and Data Types

Pricing

from $0.48 / 1,000 input record processeds

Go to Apify Store
JSON Dataset Validator - Required Fields and Data Types

JSON Dataset Validator - Required Fields and Data Types

Validate JSON records for required fields, data types and numeric rules. Export rejected fields and source indices before a downstream import.

Pricing

from $0.48 / 1,000 input record processeds

Rating

0.0

(0)

Developer

Dhan sites

Dhan sites

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

21 hours ago

Last modified

Categories

Features

Limited permissions

Share

Check supplied records against explicit field rules before importing or exporting a dataset. Find missing fields, incorrect JSON types, numeric bounds, string lengths, enum mismatches and repeated values with record-level evidence.

Start with this workflow

Catch missing fields and wrong data types before importing records.

After the run: Inspect per-record valid flags and failed field rules in REPORT. This checks the supplied rules, not every possible downstream requirement.

What is billed: Processed input records, including rejected records; invalid top-level input is free. Check the Pricing tab for the applicable subscription-tier rate. Result rows and billable input units can differ. A successful execution does not guarantee full coverage.

The example uses a small supplied fixture or the publisher-owned demonstration target. Replace it with input you are authorized to process; inspect coverage, diagnostics and limits before downstream use.

Quick start

  1. Open the Input tab or the public Example task and restore the example input.
  2. Run the small example below. Use non-sensitive supplied records first. Source URLs are metadata; this Actor does not fetch websites.
  3. Open the dataset for individual results, then read REPORT for coverage and diagnostics. A successful execution alone does not establish that all requested work was completed.
  4. Download the relevant files from the Output tab, or retrieve the dataset through Apify's API for your next workflow step.
{
"records": [
{
"id": 1,
"price": 100
},
{
"id": "wrong",
"price": -1
},
{}
],
"rules": [
{
"field": "id",
"type": "integer",
"required": true
},
{
"field": "price",
"type": "number",
"min": 0,
"required": true
}
]
}

Output example

The following is a real first result from the developer's example run; some large nested fields are omitted for readability. These are supplied sample records; source labels are not independently verified website evidence.

{
"record_index": 0,
"valid": true,
"issues": [],
"issue_count": 0
}

The default dataset contains result rows. Files declared for this Actor are listed below; availability depends on the input mode and validation result. Input errors and diagnostics are reported in REPORT.

  • REPORT

Input reference

FieldTypeRequiredDescription
maxRecordsintegerNoTotal record processing cap. Capped output is explicitly truncated.
recordsarrayYesJSON array of input records. Up to10000 supplied; at most1000 processed per run.
rulesarrayYes1-50 explicit field rules: field, required, type, min/max, enum and string minLength/maxLength. Unicode code-point lengths; not full JSON Schema.
uniqueFieldsarrayNoUp to20 dot-path fields. Missing values are skipped; equal null/JSON values are grouped. Only inspected records are compared.

Advanced workflow

String lengths and sample uniqueness checks

Field rules additionally accept minLength and maxLength for string values, measured in Python Unicode code points. uniqueFields optionally lists up to20 dot-path fields to check for repeated values in the inspected prefix. Missing fields are excluded from uniqueness grouping; null values are compared. Equality uses sorted JSON serialization and distinguishes1,1.0,true and"1". REPORT includes duplicate_groups and summary.issue_counts. Uniqueness is not a guarantee about records outside capped coverage. This remains an explicit rule format, not full JSON Schema.

Pricing

$0.6 per 1,000 processed records ($0.0006 each) at the entry tier. Per-record diagnostics count as processed records; invalid top-level input has no record event fee. No run-start event or automatic output-row event. The Pricing tab shows the applicable subscription-tier price. The spending limit can reduce the number of processed items.

For example, 100 billable items cost $0.06 in Actor event fees at the entry tier. Zero findings is different from zero processed items. Inspect the report's processed/checked counts and the run's charge events to reconcile a run.

Limits and interpretation

Default 200, maximum 1,000 processed records; at most 10,000 supplied records and 2 million serialized JSON characters. Rules use explicit dot paths and are not full JSON Schema. No type coercion, date validation, regex matching or array-element traversal. Missing differs from null; booleans are not numeric values. Uniqueness covers only the inspected prefix.

Results cover only the inspected input. Truncation and unchecked records require review; do not treat them as a complete-source guarantee. Input is not overwritten. The Actor uses limited permissions.

Troubleshooting and support

  • Run succeeded but output is diagnostic: inspect REPORT, correct the named fields, and rerun. Handled invalid input can finish with SUCCEEDED and no billable items.
  • Fewer results than requested: check coverage, truncation, spending limits and the limits above. Check the input field names, per-record diagnostics and coverage. This tool does not fetch websites.
  • Repeat a workflow: save a task with your input and use Apify scheduling or its API. Review each run's coverage before passing results downstream.
  • Report a problem: open this Actor's Issues tab with the run ID, expected behavior and a minimal non-sensitive input. Never post tokens, credentials or private source data.

Who is this for?

Data engineers checking scraped JSON records before importing them. Supply records and the supported validation rules your downstream workflow requires.

Frequently asked questions

Is this a complete JSON Schema validator?

It checks its documented required-field, type and numeric rules. It does not implement every JSON Schema keyword or guarantee compatibility with an unspecified destination.

How do I try it before using my full input?

Open the Input tab, review the prefilled example, and run a small batch with a spending limit. Inspect the dataset and report before increasing the batch. Examples can incur the documented inspection or analysis fee; an execution marked successful can still contain rejected records or incomplete coverage.

Can I use the Actor through an API or on a schedule?

Yes. Use Apify's Actor API or schedules. Keep credentials private and use the documented input fields. The pricing and limits below apply to API runs too.