Skip to content
Testaroo
json112.2 KB

Fake Orders Dataset (JSON, 1000 records)

The 1000-row orders dataset as JSON: the format twin of the CSV version, relational to the users dataset.

Preview, first 50 linesjson
[
  {
    "id": 1,
    "user_id": 480,
    "product": "Reach",
    "amount": 284.72,
    "date": "2025-03-29"
  },
  {
    "id": 2,
    "user_id": 254,
    "product": "Actually",
    "amount": 258.4,
    "date": "2025-07-23"
  },
  {
    "id": 3,
    "user_id": 471,
    "product": "White",
    "amount": 309.38,
    "date": "2025-07-03"
  },
  {
    "id": 4,
    "user_id": 487,
    "product": "Maintain",
    "amount": 286.3,
    "date": "2025-08-28"
  },
  {
    "id": 5,
    "user_id": 325,
    "product": "Successful",
    "amount": 279.48,
    "date": "2025-02-25"
  },
  {
    "id": 6,
    "user_id": 144,
    "product": "Leg",
    "amount": 236.42,
    "date": "2025-12-22"
  },
  {
    "id": 7,
    "user_id": 54,
    "product": "Option",
    "amount": 465.57,
    "date": "2025-03-15"
  },
… 112.2 KB file: download for the full file.

Specifications

Records
1000
Schema
id, user_id, product, amount, date
Relates To
users.id
Seed
5678

Testing contract

Expected to pass
Scenario
Exercise Fake Orders Dataset (JSON, 1000 records) in its fake datasets workflow. The 1000-row orders dataset as JSON: the format twin of the CSV version, relational to the users dataset.
Expected result
array length is 1000; first-record keys are id, user_id, product, amount, date. Declared feature checks: relatesTo=users.id.

What is a .json file?

JSON (JavaScript Object Notation) is a lightweight, text-based data-interchange format representing objects, arrays, strings, numbers, booleans, and null. It is language-independent, human-readable, and the dominant format for web APIs and configuration. It requires a single well-formed root value.

How to use this file

Use an example JSON file to test parsers and serializers, schema validation, Unicode and number-precision handling, and API request or response processing.

How to use this file for testing

“Fake Orders Dataset (JSON, 1000 records)” is a deterministic Testaroo fixture for Data import, Conversion testing. Realistic faker-generated datasets with documented schemas for testing import and ETL flows.

Documented properties for this file: seed 5678 · 1,000 records · schema: id, user_id, product, amount, date. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such, expect parsers to fail loudly rather than silently accept them.

Data fixtures document their exact quirks (delimiters, encodings, null handling, schema, and row counts) in the spec table. Point your parser or importer at the file and assert it handles the documented edge cases; clean and deliberately-messy siblings make before/after diffs straightforward.

Code examples

import json

with open("orders.json") as f:
    data = json.load(f)
print(type(data), len(data))

Generated by generation/data_fake.py. Free for any use, no attribution required, license.