Ask Your Question
1

converting into nested JSON

asked 2020-01-07 06:09:35 -0500

munipratap gravatar image

updated 2020-01-07 10:48:40 -0500

metadaddy gravatar image

my input data is as follows :

 {
  "data": {
    "name": "streamsets",
    "site": "streamsets.com",
    "number" : 123456789
  },
  "final": "outpot"
}

customize to below want add '[' to map after data

 {
  "data": [
    {
    "name": "streamsets",
    "site": "streamsets.com",
    "number" : 123456789
  }
    ],
  "final": "outpot"
}
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2020-01-07 10:53:20 -0500

metadaddy gravatar image

You can use an Expression Evaluator, then a Field Remover to create the structure you need:

Expression Evaluator Field Expressions:

image description

Field Remover

image description

Result in preview:

image description

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-01-07 06:07:38 -0500

Seen: 39 times

Last updated: Jan 07