cancel
Showing results for 
Search instead for 
Did you mean: 

How many references should be imported when using JSON.VBO

MichaelFu
Level 4
I want to use the JSON VBO to convert collection to string but the message box notices "Internal : Could not run the object because one of the code stages has a compile error, use Check for Errors for a list of problems",So I open the JSON business object and click the "Check Code" button ,the error messages as below: Initialise Stage1 Error Validate Compiler error at line 8: Name 'JavaScriptConvert' is not declared. No Initialise Stage1 Error Validate Compiler error at line 47: Type 'JavaScriptObject' is not defined. No Initialise Stage1 Error Validate Compiler error at line 89: Type 'JavaScriptObject' is not defined. No Initialise Stage1 Error Validate Compiler error at line 59: Name 'JavaScriptConvert' is not declared. No Initialise Stage1 Error Validate Compiler error at line 108: Type 'JavaScriptArray' is not defined. No Initialise Stage1 Error Validate Compiler error at line 38: Type 'JavaScriptArray' is not defined. No Initialise Stage1 Error Validate Compiler error at line 64: Type 'JavaScriptArray' is not defined. No Initialise Stage1 Error Validate Compiler error at line 69: Type 'JavaScriptObject' is not defined. No which reference should I import besides these references and namespaces? References: System.Data.dll System.Xml.dll System.Drawing.dll C:\Program Files\Blue Prism Limited\Blue Prism Automate\Newtonsoft.Json.dll Namespaces: System.Data System.Drawing Newtonsoft.Json System.Collections.Generic System.Text System.IO System thanks.
2 REPLIES 2

1) Have you installed NewtonSoft JSON version 1.3.1? https://github.com/JamesNK/Newtonsoft.Json/releases/download/1.3.1/Json 2) Does the dll exist at 'C:\Program Files\Blue Prism Limited\Blue Prism Automate\Newtonsoft.Json.dll' (it shouldn't need a fully qualified path just 'Newtonsoft.Json.dll' should be enough) 3) You should not need any additional namespace imports or references.

MichaelFu
Level 4
Thank you.It works on NewtonSoft JSON version 1.3.1