The World’s Largest Online Community for Developers

'; java - Gson.toJson() method returns string embedded with "data" - LavOzs.Com

I am working on Workfusion which is one of the automation tool and it consists of selenium, java and Web -harvest technology. Below is the snipped of my code.

  <while condition="${continue_flg}" maxloops="${full_data.size()-1}"
                 Gson gson = new Gson();
                 LinkedHashMap recMapTemp1 = full_data[ind.toInt()];
                 println "*****"+recMapTemp1; // Contains key value map
                 jsonValueMap = gson.toJson(recMapTemp1);
                 println "*****"+jsonValueMap; // "data" is added before value

          <insert-datastore datastore-name="Fallout_type"
                 json-value-map="${jsonValueMap}" create="true" />

In map Key is "ship to ctry cd" and Value is "AT" but after converting toJson String it gives as below. I dont need this data word i need normal Json Value.

"ship to ctry cd":{"data":"AT"},

you can do :

println "*****"; 

to achieve that

What is the difference between String and string in C#?
How do I iterate over the words of a string?
How do I read / convert an InputStream into a String in Java?
Case insensitive 'Contains(string)'
How do I make the first letter of a string uppercase in JavaScript?
How to replace all occurrences of a string?
How to check whether a string contains a substring in JavaScript?
Does Python have a string 'contains' substring method?
How do I convert a String to an int in Java?
Why is char[] preferred over String for passwords?