Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Nested JSON #1683

Open
ssabnis opened this issue Jun 17, 2020 · 1 comment
Open

Nested JSON #1683

ssabnis opened this issue Jun 17, 2020 · 1 comment
Labels
enhancement Issues related to improving the codebase, the documentation or process within the project

Comments

@ssabnis
Copy link

ssabnis commented Jun 17, 2020

Feature request

Great utility, Does tool support the Nested JSON to simulate for example EMPLOYEE, DEPT relations. Where I can have same key generated for EMP and DEPT structures. And limit the Nested EMP to be max 10 rows.

@ssabnis ssabnis added the enhancement Issues related to improving the codebase, the documentation or process within the project label Jun 17, 2020
@tjohnson-scottlogic
Copy link
Contributor

Hi @ssabnis, thanks for the interest :) You could use nested JSON to model EMPLOYEE, DEPT. I've done an example:

and ran via:

[tim@sn1 bin]$ ./datahelix --max-rows=3 --replace --profile-file=profiles/departments.txt --output-format=json --quiet --output-path=.txt

to get: out.txt

Would this work for your purposes? Or are you looking to use with SQL?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Issues related to improving the codebase, the documentation or process within the project
Projects
None yet
Development

No branches or pull requests

2 participants