Auto-Generate a DATAMIMIC Model from JSON¶
This tutorial guides you through the process of creating a DATAMIMIC Model from a JSON record. Ensure you have an existing project as a precondition, for example, a project created as an empty project.
-
Open the file-actions menu: In your project's file tree, click the file-actions icon and choose Add File.
-
Select File Type: In the File Wizard, select Model from data (.xml) (keep its default JSON tab).
Model from data (.xml), JSON tab — step 1: Generation mode -
Choose a generation mode: Pick Preserve exact values to mirror the uploaded JSON as-is, or Infer generators & protect PII to have DATAMIMIC infer generators for the detected fields.
-
Name the file: On step 2 (Naming), enter a file name for the generated model.
-
Upload JSON File: On step 3 (Source JSON), upload your JSON file — select from your system or drag-and-drop into the dropzone.
-
Confirm Creation: Confirm the creation by clicking on Create. The new file opens automatically.
-
Review Created Model: A new DATAMIMIC model is created to generate the JSON file multiple times. The default
countis set to1. If you want to create more than 1 JSON record just update the value to e.g.100000. In this case DATAMIMIC will create100000JSON records.
New DATAMIMIC Model Created -
Further Refinement: You can further refine this model to utilize DATAMIMIC generators to apply dynamic values for one or many of the available keys.
These steps generate a DATAMIMIC model from an existing JSON record. From there, customise the model and add dynamic generation as needed.