Newtonsoft JSON

Newtonsoft JSON is a very common library in C# for working with JSONs. Some interfaces (currently Open Digital Twin Interfaces as well as TwinCAT HMI) are depending on Newtonsoft JSON library. Formerly we had this library directly included in our delivery. Latest Unity started in adding dependencies to this library in some of the packages in the standard packages and in the standard project setting. This caused collissions with our delivery because only one DLL with the same name is allowed to be included in a project.

From the newest release on, we don't include any more Newtonsoft JSON in our delivery. For making our scripts to be compiled, in the case that in your project there is no Newtonsoft JSON included, we are having a Scripting Defile Symbol (Compile Switch) which is GAME4AUTOMATION_JSON.

You only need to set this scripting define symbol if you want to use one of our interfaces which is depending on it (currently TwinCAT HMI and Open Digital Twin Interface).

If yo don't have any dependency in your project to Newtonsoft JSON you can manually add the dependency by adding this line to manifest.json (can be found in the folder Packes):

As soon as you are sure, that Newtonsoft.JSON is available in your project, GAME4AUTOMATION_JSON needs to be set in Scripting Define Symbols:

Last updated