Tags are strings inside your JSON template, like "firstName()". Each one is replaced with generated data. A tag can be a whole value or sit inside text, and repeat() goes first in an array to repeat the item after it.
Use them in the JSON Generator to build random test data, or start from one of the sample JSON templates. Optional arguments are marked with ?.
this.fieldName reuses a value generated earlier in the same object, so related fields stay consistent. Fields are generated in order, so the referenced field must come first. For example, "fullName": "this.firstName this.lastName" always matches the record's first and last name.
Nested objects and arrays can also reference fields of the object that contains them: inside an order's line items, "orderId": "this.id" gives the parent order's id. A value that is only a reference keeps the referenced value's type; a reference inside other text is inserted as text.
Use as the first item of an array to repeat the item after it. repeat() picks a random count from 1 to 100, repeat(n) repeats it exactly n times, and repeat(min, max) picks a random count in that range. The count is capped at 300.
Example usage
repeat( )repeat( 5)repeat( 1, 5)Generates a random integer value. Supports optional arguments to specify a range. Used as the whole value it returns a number; inside other text it is inserted as text.
Example usage
int( )int( 1, 100)int(4)Example output
34534564Generates a random date. Supports optional arguments to specify a date range.
Example usage
date( )date( "2022-01-01", "2022-12-31")Example output
1979-04-05T07:23:11.051Z2022-07-15T12:43:51.926ZGenerates a random double value. Supports optional arguments to specify a range and precision. Used as the whole value it returns a number.
Example usage
double( )double( 0, 1, 4)Example output
34645.230.4321Generates a random value from the list of arguments. true, false, null and numbers are returned as JSON values.
Example usage
enum(true, false)enum(blue, red, green, black)Generates a random email address. Supports an optional argument to specify a domain.
Example usage
email( )email(gmail)email(example, test, foo)Example output
john.doe@example.comGenerates a globally unique identifier ( UUID v4).
Example output
6a1f9a14-9eeb-4f9c-9df3-b845fc1c7230Generates an ObjectId string which is commonly used with MongoDB.
Example output
60e32795b87f73644c9f9f1dGenerates a random product name.
Generates a random product adjective.
Generates a random product material.
Generates a random product description.
Generates a random product name.
Generates a random price.
Generates a random ISBN.
Generates a random airline name.
Generates a random aircraft type.
Generates a random airport name.
Generates a random airplane name.
Generates a random flight number.
Generates a random record locator.
Generates a random seat number.