Package | Description |
---|---|
javax.json.bind |
Provides JSON Binding API, which enables binding Java objects from and to
JSON documents.
|
Modifier and Type | Method | Description |
---|---|---|
<T> T |
Jsonb.fromJson(InputStream stream,
Class<T> type) |
Reads in a JSON data from the specified InputStream and return the
resulting content tree.
|
<T> T |
Jsonb.fromJson(InputStream stream,
Type runtimeType) |
Reads in a JSON data from the specified InputStream and return the
resulting content tree.
|
<T> T |
Jsonb.fromJson(Reader reader,
Class<T> type) |
Reads in a JSON data from the specified Reader and return the
resulting content tree.
|
<T> T |
Jsonb.fromJson(Reader reader,
Type runtimeType) |
Reads in a JSON data from the specified Reader and return the
resulting content tree.
|
<T> T |
Jsonb.fromJson(String str,
Class<T> type) |
Reads in a JSON data from the specified string and return the resulting
content tree.
|
<T> T |
Jsonb.fromJson(String str,
Type runtimeType) |
Reads in a JSON data from the specified string and return the resulting
content tree.
|
String |
Jsonb.toJson(Object object) |
Writes the Java object tree with root object
object to a String
instance as JSON. |
void |
Jsonb.toJson(Object object,
OutputStream stream) |
Writes the object content tree into output stream.
|
void |
Jsonb.toJson(Object object,
Writer writer) |
Writes the object content tree into a Writer character stream.
|
String |
Jsonb.toJson(Object object,
Type runtimeType) |
Writes the Java object tree with root object
object to a String
instance as JSON. |
void |
Jsonb.toJson(Object object,
Type runtimeType,
OutputStream stream) |
Writes the object content tree into output stream.
|
void |
Jsonb.toJson(Object object,
Type runtimeType,
Writer writer) |
Writes the object content tree into a Writer character stream.
|
Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.