Skip to main content

Json

Complete API reference for Json, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: Serializer

Component: no


public class Json

Constructors

SignatureDescription
Json()Creates a new instance of Json.

Virtual Attributes

NameTypeAccessDescription
ignorePrivateFieldsbooleanget/setVirtual attribute exposed by isIgnorePrivateFields. Access it like a field to read or write the underlying value.
ignoreProtectedFieldsbooleanget/setVirtual attribute exposed by isIgnoreProtectedFields. Access it like a field to read or write the underlying value.
ignorePublicFieldsbooleanget/setVirtual attribute exposed by isIgnorePublicFields. Access it like a field to read or write the underlying value.
lenientbooleanget/setVirtual attribute exposed by isLenient. Access it like a field to read or write the underlying value.
prettyPrintingbooleanget/setVirtual attribute exposed by isPrettyPrinting. Access it like a field to read or write the underlying value.

Methods

SignatureReturnsDescription
toJsonString(Object)StringReturns the string representation.
fromJsonString(String, Class)ObjectPerforms the fromJsonString operation using the provided parameters (json, classType).

Static Methods

SignatureReturnsDescription
toJson(Object)StringPerforms the toJson operation using the provided parameters (object).
toJson(Object, boolean)StringPerforms the toJson operation using the provided parameters (object, prettyPrinting).
toJson(Object, boolean, boolean)StringPerforms the toJson operation using the provided parameters (object, prettyPrinting, lenient).
toJson(Object, boolean, boolean, boolean)StringPerforms the toJson operation using the provided parameters (object, prettyPrinting, lenient, ignorePrivateFields).
toJson(Object, boolean, boolean, boolean, boolean)StringPerforms the toJson operation using the provided parameters (object, prettyPrinting, lenient, ignorePrivateFields, ignoreProtectedFields).
toJson(Object, boolean, boolean, boolean, boolean, boolean)StringPerforms the toJson operation using the provided parameters (object, prettyPrinting, lenient, ignorePrivateFields, ignoreProtectedFields, ignorePublicFields).
fromJson(String, Class)ObjectPerforms the fromJson operation using the provided parameters (json, classType).
fromJson(String, Class, boolean)ObjectPerforms the fromJson operation using the provided parameters (json, classType, lenient).