Forum Discussion
Anonymous
4 years agoprintln('{"edges":[{"type":"Depends On","from":"LMID_2","to":"LMID_1"},{"type":"Depends On","from":"LMID_3","to":"LMID_1"}]}')
There are alternative ways, but this is the most straightforward. One alternative way is to build a Groovy map (similar to a Python dictionary) containing the entries. Then convert the Groovy map to json and print it out.
Related Content
- 6 years ago
- 6 years ago