You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Extract only certain parameters from JSON output

edited Jul 17, 2020 1:20PM in Planning 1 comment

Content

Hi all,

With an API call I want to list all available files in EPBCS which are available for downloading. The JSON body is printed to the log, but it seems that there is a maximum of characters in the log file (when opening the Business Rule in Jobs). Would it be possible to only print a certain parameter from the Json output into the log? I would only need the names of the files in this case. Currently I use the following code:

HttpResponse<String> Listfile = operation.application
.getConnection("Local cloud instance")
.get("/interop/rest/11.1.2.3.600/applicationsnapshots")
.asString()

 

println Listfile.status

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!