Working on groovy script to compare Json response format to SQL script values . created a hashmap object and when trying to loop through the reponse object based on a attribute which has 'hyphen' in the name attribute it gave missingproperty exception . I have tried handling this using string notation but now it complain with missing method exception in this line (if (singleNode("lab-term") == dbproperty.lab_term(i)) )
Any help is appreciated
Here below is Json response : In this example notice "Lab-term" Key has a '-' hyphen in the lab-term key .