How to get count of json objects from output variable of HTTP request activity

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.

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

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!!

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