パッケージ com.shimizukenta.jsonhub

This package provides the JsonHub interface to convert, parse, build JSON(RFC 8259).

The primary interface to use is JsonHub.

 // Example of Use.
 
 public class POJO {
        
     public int num;
     public String str;
     public boolean bool;
     public List<String> array;
     
     public POJO() {
         num = 100;
         str = "STRING";
         bool = true;
         array = Arrays.asList("a", "b", "c");
     }
     
     public static void main(String[] args) {
     
         POJO pojo = new POJO();
         String json = JsonHub.fromPojo(pojo).toJson();
         System.out.println(json);
         
         // {"num":100,"str":"STRING","bool":true,"array":["a","b","c"]}
     }
 }