![]() |
Java Runtime 3.0.1
|
Public Member Functions | |
| String | toJsonString (AlfaObject alfaObject) throws IOException |
| String | toJsonString (JsonCodecConfig jsonCfg, AlfaObject alfaObject) throws IOException |
| OutputStream | exportObj (JsonCodecConfig jsonCodecConfig, AlfaObject alfaObject) throws IOException |
| void | exportObj (JsonCodecConfig jsonCodecConfig, AlfaObject alfaObject, OutputStream os) throws IOException |
| String | toFormattedJson (AlfaObject alfaObject) throws IOException |
| String | toFormattedJson (JsonCodecConfig cc, AlfaObject alfaObject) throws IOException |
| DataConsumer | jsonDataConsumer (JsonCodecConfig wc, JsonGenerator jGenerator, OutputStream stream) |
| DataSupplier | jsonDataSupplier (JsonCodecConfig cc, JsonParser jParser) |
Static Public Attributes | |
| static JsonCodecConfig | CfgMapAsArrayWithNoMeta |
The JsonCodec class contains utility methods that encode and decode Alfa objects to and from JSON.
|
inline |
Write JSON representation of an Alfa object to an OutputStream
| jsonCodecConfig | JSON conversion settings |
| alfaObject | The Alfa object to convert |
| IOException |
|
inline |
Construct a formatted JSON string representing the Alfa object
| alfaObject | The Alfa object to convert |
| IOException |
|
inline |
Constructs a JSON representation of an Alfa object
| alfaObject | The Alfa object to convert |
| IOException |
|
inline |
Constructs a JSON representation of an Alfa object
| jsonCfg | Use this configuration for conversion |
| alfaObject | The Alfa object to convert |
| IOException |
|
static |
Configuration without $type or $key metadata, also ALFA maps are written as array with key and val fields