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.