Created
July 20, 2018 13:21
-
-
Save ssaurel/000ef61a1531fed2470261c8632315fd to your computer and use it in GitHub Desktop.
Encode JAVA Objects to JSON on the SSaurel's Blog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public String encode(Groups groups) { | |
// Encode POJO hierarchy to JSON quickly with Fastjson | |
return JSON.toJSONString(groups); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment