J-Express forum
June 04, 2020, 03:42:17 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: J-Express 2011 released. Download from jexpress.bioinfo.no
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to read JSON response with JYTHON script.  (Read 1235 times)
RyanCaleb
Newbie
*
Posts: 14


View Profile Email
« on: November 09, 2017, 09:21:55 AM »

Hello,

I am trying to read JSON response via JYTHON script. h

def assertresponse(input, context):
value = String(input)
#value = input.scannedDate()
Application.showMessage(value)

The above script will read complete response.
1)I want to know how I can read individual field in response and load the value into a variable.
2) if there are multiple occurrences of same field, how to get 1st occurrence value in the response?

I am not restricted to Jython, if there is any other script which can give me the same output. I am fine.

Thanks in advance,






I didn't find the right solution from the internet.
References:
https://forums.parasoft.com/discussion/2744/how-to-read-json-response-with-jython-script

advertisement examples
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.14 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!