Just create a template and generate placeholder JSON data for database population or api mocking. It's that easy.
https://lorem-json.com/api/json
Using our placeholder data generation API is free, and always will be.
Generate simple or complex data structures to fit your needs. Combine any of the following and more:
Basic: strings, integers, floats, booleans
Advanced: dates, times
General Purpose: names, animals, colors, countries, languages
To use any of the available dynamic data modules simply enclose the module in double brackets {{int(20)}}.
You can combine data modules into a single field as if they were template string values.
You can generate nested objects and arrays using the same methods. There is a limit of 1000 array elements.
Reference keys allow you to reuse the output of one module as an input to another, enabling dynamic data relationships. Define a key by appending a colon followed by the key name to the module name.
Note: keys may only contain letters, numbers dashes (-) and underscores (_)
Once a key is defined, it can be referenced in subsequent modules by using the syntax {{#keyName}}. This is particularly useful for creating dependent or related data values.
Example: Using a key to create a dependent relationship between the value of a dice roll and a subsequent action.
Dynamic Data Modules
int(max), int(min, max)
generates a random integer between min (inclusive) and max (exclusive). If only one argument is provided it will generate between 0 and the provided value.
string(length), string(minLength, maxLength), string(min, max, alphabet)
generates a random string of length between min (inclusive) and max (exclusive). You can provide a custom alphabet to use when generating the string. This can be used for generating hex values, password masks or really anything.
bool()
generates a random boolean of true, or false with a 50% chance for either.
date/dateTime(start, end)
generates a random date/datetime between start(inclusive) and end(exclusive) dates. Ensure the dates are provided in ISO format.
start date must be greater than end date or an error will be returned instead
float(min), float(min, max), float(min, max, decimals)
generates a random floating point number between min and max. if no max is provided it will instead generate between 0 and the value provided.
the number will be rounded to decimals which, if not provided, defaults to 2.
random(*args)
Chooses one of the provided arguments at random. Useful for selecting from a set number of predetermined values.
Note: All data modules can accept the output of any other module as their input. This can best be seen here, we can use a combination of the int module to generate a special random dice option.
color(), animal(), country(), name(), language()
All of these take no arguments and output a random value from their dictionaries. animals for animal(), colors for color(), etc.
You can either explicitly provide an array of data to be parsed or use the format seen on the right to generate a list of n length automatically using your provided template.
Count is limited to a length of 1000. If you need more than that just make more api calls
This service is provided free and as-is. Please allow this to continue operating as a free service and limit your requests to 10/second.