Create json in Groovy
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2019
02:48 PM
06-12-2019
02:48 PM
Create json in Groovy
Need to create Json like this
"data":
{
"data1":"data1",
"data2":"data2"
}
}
I'm able to create the below one but not the above one. I'm using def json = new JsonOutput().toJson(obj) for the below
{
"data1":"data1",
"data2":"data2"
}
Solved! Go to Solution.
10 REPLIES 10
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2019
02:42 AM
06-28-2019
02:42 AM
Sorry for the inconvenience, @henil_shah. I didn't mean to bother you. I'm just passionate about helping people and always try to find solutions where possible.
It’s great to hear the issue is solved.
Have a great day!
Olga Terentieva
SmartBear Assistant Community Manager

- « Previous
-
- 1
- 2
- Next »
- « Previous
-
- 1
- 2
- Next »