パッケージ 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"]} } }
-
インタフェースの概要 インタフェース 説明 JsoncReader This interface is JSONC reader to JsonHub.JsonHub This interface is implements of JSON(RFC 8259) converter, parser, builder, prettyPrint.JsonHubBuilder This interface is implements of building JsonHub instance.JsonHubPrettyPrinter This interface is implements of pretty-printing JSON.JsonObjectPair this interface is pair of Object name ans value.JsonString This interface is escape/unescape JSON-String. -
クラスの概要 クラス 説明 JsonHubPrettyPrinterConfig This class is implements of Pretty-Print-Configuration. -
列挙型の概要 列挙 説明 JsonHubType JSON value types. -
例外の概要 例外 説明 JsoncReaderException JSON reader Exception.JsonHubBuildException JsonHub build Exception.JsonHubIndexOutOfBoundsException JsonHub parse Index out of bounds Exception.JsonHubNumberFormatException JsonHub Number format Exception.JsonHubParseException JsonHub Parse Exception.JsonHubUnsupportedOperationException JsonHub Unsupported Operation Exception.JsonHubUnsupportedParseException JsonHub Unsupported Parse Exception.JsonPathParseException JsonPath parse Exception.