5 Replies Latest reply on Jun 2, 2016 8:01 AM by Joe Piotrowski

    Grammar file for .json format

    Joe Piotrowski

      Do we have any grammar file that will parse .json files into Configuration Files in BSA? If not, is it possible to create one?

       

      Example of .json file output:

      {

          "requestType": "ServiceProvision",

          "requestinfo": {

              "username": "username1",

              "timestamp": "2013-08-22 21:29:30",

              "requestId": 1111,

              "requestInc": "1111"

          },

          "applicationInfo": [

              {

                  "appId": 4374,

                  "appName": "Application Message Service",

                  "appAbvn": "AMS",

                  "appEnvID": "xxx",

                  "appEnvName": "appenv",

                  "appEnvType": "MTE",

                  "serverInfo": [

                      {

                          "serverHostName": "",

                          "serverID": 1,

                          "datacenter": "xxx",

                          "networkType": "extra",

                          "securityContainer": "xxx Ent",

                          "labType": "NA",

                          "networkZone": "bus",

                          "tier": "App",

                          "domain": "me.com",

                          "size": "DB/Large",

                          "cpu": 1,

                          "ram": 4,

                          "osID": 13,

                          "osName": "Red Hat",

                          "agilityLocation": "",

                          "agilityNetwork": "",

                          "storage": [

                              {

                                  "primary": 50

                              },

                              {

                                  "path": "/opt/user1",

                                  "size": 486,

                                  "user": "user1",

                                  "group": "user1"

                              },

                              {

                                  "path": "/var/user1",

                                  "size": 99,

                                  "user": "user1",

                                  "group": "user1"

                              }

                          ],

                          "mwInfo": [

                              {

                                  "id": 22,

                                  "name": "IBM BuildForge Agent - Prod"

                              }

                          ]

                      },

                      {

                          "serverHostName": "",

                          "serverID": 2,

                          "datacenter": "xxx",

                          "networkType": "ext",

                          "securityContainer": "xx inc",

                          "labType": "NA",

                          "networkZone": "Business",

                          "tier": "App",

                          "domain": "me.com",

                          "size": "large",

                          "cpu": 1,

                          "ram": 4,

                          "osID": 13,

                          "osName": "Red Hat Enterprise Linux 5.8 64-bit",

                          "agilityLocation": "",

                          "agilityNetwork": "",

                          "storage": [

                              {

                                  "primary": 50

                              },

                              {

                                  "path": "/opt/mqm",

                                  "size": 486,

                                  "user": "user1",

                                  "group": "user1"

                              },

                              {

                                  "path": "/var/mqm",

                                  "size": 99,

                                  "user": "user1",

                                  "group": "user1"

                              }

                          ],

                          "mwInfo": [

                              {

                                  "id": 22,

                                  "name": "IBM BuildForge"

                              }

                          ]

                      }

                  ]

              }

          ]

      }