Generic Source Code to convert Java to Json or Json to Java