QData

A QData contains values on basis of key and value pairs, Each pair of key and value is called as an entry.

Rules :

  1. Key name should be UNIQUE, If the same key name was inserted multiple times. It would be overridden.

Example : QData employeeInfo = extractGroup("firstEmployee");

Sample :

{

"firstName" : "John",

"middleName" : "deSouza",

"lastName" : "D",

"SSN" : "789",

"dob" : "08/08/2000",

"Eligibility" : true

}

Ways to get data from QData :

How to get the value as String ?

String empFirstName = employeeInfo.getValueAsString("firstName");

How to get the value as Integer?

Integer empSSN = employeeInfo.getValueAsInteger("SSN");

How to get the value as Boolean?

Boolean empEligibility = employeeInfo.getValueAsBoolean("Eligibility");

List of QData Commands :

Last updated