Error converting value 408 to type 'UiPath.IntegrationService.Activities.SWEntities.C193BA43854_distancematrix_json_List.Bundle.distancematrix_json_List'. Path '[0]', line 2, position 5

I want to display the value of my json data with type list, my json has as value: [408]

I tried to put json_distances(0) in the log message and i got this error

@baoutah999

Can you first print your json…is it a jsona rray?

Cheers

This is my json array

@baoutah999

the json structure first looks wrong as a comma cannot be there after the closign backet without any other key

also did you first use deserialize?

cheers

Here is the correct json :

When i add deserialize for my json list variable it doesn’t work


@baoutah999

  1. As per error your input variable is null… that is when object referenc error would come
  2. Also as this is a jsonarray use deserialize jsonarray activity

Cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.