Aras DevOps

Example 2: JSON Document Transformation (JDT)

Consider a scenario where a user needs to add a new plugin to OAuthServer\OAuthServer.Plugins.json.

  1. Create a file named OAuthServer\OAuthServer.Plugins.json in the directory TransformationsOfConfigFiles according to JDT rules.
  2. Fill it in according to the JDT rules.
  3. Commit the changes.

The Transformation will reflect in OAuthServer\Web.config after the next Deployment. Next time, the config file should give the same result as after the first application of the transformation.

Sample JDT Transformation:

```json

{

    "@jdt.merge": {

        "@jdt.path": "$.['OAuthServer.Plugins']",

        "@jdt.value": [

            {

                "Name": "New.Aras.Plugin",

                "Enabled": true

            }

        ]

    }

}

```