Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Creating a nested json

Hi,

I have a requirement with input data as: {"field1":"xyz","field2":"xyz2","field3":"xyz3", "field4":"xyz4"}

I need the output data as below: {"Data":{"field1":"xyz","field2":"xyz2","field3":"xyz3"},"field4":"xyz4"} to load into MongoDB.

Please suggest whether to use Data Generator or JSON Generator or a custome groovy code will be useful

Creating a nested json

Hi,

I have a requirement with input data as: {"field1":"xyz","field2":"xyz2","field3":"xyz3", "field4":"xyz4"}

I need the output data as below: {"Data":{"field1":"xyz","field2":"xyz2","field3":"xyz3"},"field4":"xyz4"} to load into MongoDB.

Please suggest whether to use Data Generator or JSON Generator or a custome groovy code will be usefuluseful to create a nested josn object

Creating a nested json

Hi,

I have a requirement with input data as: {"field1":"xyz","field2":"xyz2","field3":"xyz3", "field4":"xyz4"}

I need the output data as below: {"Data":{"field1":"xyz","field2":"xyz2","field3":"xyz3"},"field4":"xyz4"} to load into MongoDB.

Please suggest whether to use Data Generator or JSON Generator or a custome groovy custom Groovy code will be useful to create a nested josn JSON object

Creating a nested json

Hi,

I have a requirement with input data as: {"field1":"xyz","field2":"xyz2","field3":"xyz3", "field4":"xyz4"}

I need the output data as below: {"Data":{"field1":"xyz","field2":"xyz2","field3":"xyz3"},"field4":"xyz4"} to load into MongoDB.

Please suggest whether to use Data Generator or JSON Generator or custom Groovy code will be useful to create a nested JSON object