Other
Below is a list of available other types of mockers.
Boolean
bool
Either True or False.
No
Latitude longitude
geo
A tuple of (latitude, longitude) coordinates.
No
Pybool
bool
A randomly generated Python boolean value.
No
UUID
uuid
A string representing a UUID (universally unique identifier) in v4 format.
No
JSON
This mocker uses Faker to generate randomized, complex and a text representation of JSON data, simulating real-world scenarios with specified data types across fields.
Parameters
Data columns
: Specification for the data structureNumber of rows
: Number of rows the returnedcls
(json.JSONEncoder): Optional JSON encoder to use for non-standard objects such as datetimesConsistent mapping
: JSON supports consistent mapping.
Note: For more information, refer to the Faker documentation.
Example
If you configure:
The results will be:
Last updated
Was this helpful?