This is an automation I created to capture the build of the automation, the name of the automation and the studio version used. I use this to output to the start of my custom log so I always know what build was being ran if I have to debug ect… I looked for something similar to this in the past and did not find it, so I decided to give back to the community. Feel free to comment or add suggestions ect.
but, it would be much easier to Deserialize the json file to a json object, then pull in the items using the keys. Here is a snippet, because I was just doing this as part of the framework:
Note: by using the relative path for project.json, it is assumed to use the current directory automatically.