Skip to content

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.

  1. Open the file-actions menu: In your project's file tree, click the file-actions icon and choose Add File.

  2. Select File Type: In the File Wizard, select Model from data (.xml) (keep its default JSON tab).

    Select JSON Model
    Model from data (.xml), JSON tab — step 1: Generation mode

  3. 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.

  4. Name the file: On step 2 (Naming), enter a file name for the generated model.

  5. Upload JSON File: On step 3 (Source JSON), upload your JSON file — select from your system or drag-and-drop into the dropzone.

  6. Confirm Creation: Confirm the creation by clicking on Create. The new file opens automatically.

  7. Review Created Model: A new DATAMIMIC model is created to generate the JSON file multiple times. The default count is set to 1. If you want to create more than 1 JSON record just update the value to e.g. 100000. In this case DATAMIMIC will create 100000 JSON records.

    Created Model
    New DATAMIMIC Model Created

  8. 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.