cancel
Showing results for 
Search instead for 
Did you mean: 

Json deserialize

Juan_LuisTrelle
Level 4
Hi,  I am trying to consume a REST web service using provided VBOs. When a get the token from the web service, the result json have to be deserialized and converted to DataTable. I can't do it using Utility Json VBO, because it does not find some objects like JavaScriptArray or JavaScriptObject, so i am trying to write my own code. The json is like: { "access_token":"token", "token_type":"type", "expires_in":111111, "userName":"the username", ".issued":"a date", ".expires":"a date" } Using JsonConverter.Deserialize(json, Datatable) fails with error: "unexpected json token when reading datatable. expected startarray got startobject ...".   Any idea to solve it?   Regards.
1 REPLY 1

Denis__Dennehy
Level 15
Make sure you have the latest version of the JSON object - the one distributed with your version of Blue Prism.  I have heard of a similar issue and the client had upgraded Blue Prism but were still using the older JSON object.   Also, make sure you have installed the correct newtonsoft dll for your version of Blue Prism (v6 uses the latest .NET)