Class: Json
This page documents the methods and fields available in the Json class.
Members
| Signature | Description |
|---|---|
Json() | Creates a new instance of Json. |
fromJson(String, Class) | Performs the fromJson operation using the provided parameters (json, classType). |
fromJson(String, Class, boolean) | Performs the fromJson operation using the provided parameters (json, classType, lenient). |
fromJsonString(String, Class) | Performs the fromJsonString operation using the provided parameters (json, classType). |
isIgnorePrivateFields() | Returns whether ignore private fields is true. |
isIgnoreProtectedFields() | Returns whether ignore protected fields is true. |
isIgnorePublicFields() | Returns whether ignore public fields is true. |
isLenient() | Returns whether lenient is true. |
isPrettyPrinting() | Returns whether pretty printing is true. |
serialize(Object, Type, JsonSerializationContext) | Performs the serialize operation using the provided parameters (src, typeOfSrc, context). |
serialize(Object, Type, JsonSerializationContext) | Performs the serialize operation using the provided parameters (src, typeOfSrc, context). |
setIgnorePrivateFields(boolean) | Sets or updates the ignore private fields. |
setIgnoreProtectedFields(boolean) | Sets or updates the ignore protected fields. |
setIgnorePublicFields(boolean) | Sets or updates the ignore public fields. |
setLenient(boolean) | Sets or updates the lenient. |
setPrettyPrinting(boolean) | Sets or updates the pretty printing. |
shouldSkipClass(Class<?>) | Performs the shouldSkipClass operation using the provided parameters (clazz). |
shouldSkipField(FieldAttributes) | Performs the shouldSkipField operation using the provided parameters (f). |
toJson(Object) | Performs the toJson operation using the provided parameters (object). |
toJson(Object, boolean) | Performs the toJson operation using the provided parameters (object, prettyPrinting). |
toJson(Object, boolean, boolean) | Performs the toJson operation using the provided parameters (object, prettyPrinting, lenient). |
toJson(Object, boolean, boolean, boolean) | Performs the toJson operation using the provided parameters (object, prettyPrinting, lenient, ignorePrivateFields). |
toJson(Object, boolean, boolean, boolean, boolean) | Performs the toJson operation using the provided parameters (object, prettyPrinting, lenient, ignorePrivateFields, ignoreProtectedFields). |
toJson(Object, boolean, boolean, boolean, boolean, boolean) | Performs the toJson operation using the provided parameters (object, prettyPrinting, lenient, ignorePrivateFields, ignoreProtectedFields, ignorePublicFields). |
toJsonString(Object) | Returns the string representation. |