Purple Utilities
This is a collection of classes useful for many types of web applications and gathered into a single relatively small library for easy use.
Please find the JavaDoc for the Purple Utilities at
http://purplehillsbooks.com/purpleDoc/
Find more information at: Purple on GitHub.
Release notes
Dec, 2020
- Added an interface TemplatizedMessage which other exception classes
can implement, and if so can have their own exception templates
and parameters included in the JSON conversion.
Nov, 2020
- Added JSON Servlet classes now making it easy to extend these classes
to make your own REST oriented data server that sends and receives
data in JSON format. Very convenient for JSON API support.
- JSONSchema allows $ref reference to another schema
- FileSchemaLibrary class added to manage referenced schemas
- JSONDelta class generates a diff JSONObject from two other JSONObjects
- Conversions XML to/fom JSON more robust
- LockableJSONFile extra lock eliminated to avoid bug with zero length files
- JSONException parameters limited in size
June, 2020
- XML to JSON converter is a little smarter about detecting the schema
- Support for JSONSchema, both generation of schema object from example, and validation of example by schema
- CSVHelper has write method with variable parameters that is easier to use
- Writing XML avoids writing some characters that are not parseable by XML parser
December, 2018
- New classes
JSONDiff
and
JSONFormatter
offer command line commands for formatting a JSON file,
and for comparing two different JSON files.
November, 2018
- A variety of changes to allow for high reliable manipulation of JSON files in an environment where the file system is unreliable.