0

I need to convert CSV file into nested json format as like below.

netgroup =
 "literals": [
    {
      "type": "Network",
      "value": "10.0.0.0/8"
    },
    {
      "type": "Host",
      "value": "10.0.0.27"
    },
    {
      "type": "Host",
      "value": "10.0.0.28"
    }
  ],
  "name": "network_group_3"
}

Please help me on this.. I can ready to keep CSV file as any format..

Dishin H Goyani
  • 7,195
  • 3
  • 26
  • 37
Kannan
  • 1
  • 1

0 Answers0