Hi all,
if we are not sure that “http request” activity gives json object or json object array how to use deserialize json or deserialize json array activity?
can we get the count of json objects using output variable of http request activity?
Thanks.
ppr
(Peter Preuss)
November 27, 2023, 1:05pm
2
unfortunately we cannot derive the details and crosscheck why this unsureness is caused
on string level we could check
starting with { → JObject
starting with [ → JArray
postwick
(Paul Ostwick)
November 27, 2023, 1:15pm
3
Put a Try/Catch around Deserialize JSON and if it doesn’t work it’ll jump to the Catch block where you can use a Deserialize JSON Array.
@Ulhas_Guttikar
directly with the output of http request we cant get
need use deserialize json activity to get JsonObject
then wee neednto use JsonObject.count
here in pic->jobj is output of deserialize json
Cheers!!
system
(system)
Closed
February 21, 2024, 8:55am
5
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.