When set to true, the structures that are passed as serialization sources must match the structures that are passed as serialization targets: All keys or properties that are defined on the serialization sources must exist on the serialization targets, otherwise an exception will be thrown
Generate a valid JSON string from a given class instance
A class instance
A valid JSON string containing all the data on the provided class
Convert a JavaPropertiesObject instance to a string that is valid so it can be saved to a .properties file.
An instance of a JavaPropertiesObject
An ISO-8859-1 string containing valid properties data, ready to be stored as a .properties java format file.
Copy data from a json string to a class instance. All class properties will be filled with the values from the json For more information on how the conversion is performed, see this class objectToClass method
A string containing valid json data
A class instance that will be filled with all the json data (the instance is modified by this method and all values erased).
The provided class instance with all its properties filled with the corresponding json values
Copy data from an object instance to a class instance. All class properties will be filled with the values from the object.
If a property from the class instance contains a default value, it will be used as a reference to restrict the value type. If the same key on the object has a different type value, an exception will happen. Null values on the source object keys will leave the same destination class properties untouched.
Typed arrays can be forced by setting a class property as an array with a single default item. That item type will be used as the reference for all the array values on the object property.
An object containing the source data to serialize
An empty class instance that will be filled with all the values from the object
The provided class instance with all its properties filled with the corresponding object values
Convert a string containing the contents of a Java properties file to a JavaPropertiesObject instance Note that the input string must be encoded with ISO-8859-1 and strictly follow the Java properties file format (Otherwise results may not be correct).
String containing the contents of a .properties Java file
The properties format parsed as an object
Generated using TypeDoc
Contains methods that allow us to convert data from one complex data structure format to another complex data structure format