Pickle 1.0.4
Pickles Fantom objects to and from strings

A simple API that pickles Plain Old Fantom Objects to and from strings.

Pickle is a drop-in replacement for the standard Fantom serialisation framework. It fixes many bugs, adds new features, and in general, just works!

Pickle only enhancements:

  • Pretty printing is event prettier (and enabled by default).
  • Object creation may be handed off to a dedicated func via new makeObjFn option.
  • Pickled objects may omit null values via new skipNulls option.
  • Pickled objects may emit using statements via new using option, to reduce verbosity and cut down file size.
  • Fully tested in Java AND Javascript.

Pickle fixes the following:

  • @2758 - It-block ctors are used if they exist.
  • @2726 - Nested Maps are possible in JS.
  • @2669 - Maps are ordered as after de-serialisation.
  • @2644 - Optimised serialisation when using the skipDefaults option.

The Pickle source code mostly IS the standard Fantom serialisation framework! The framework has been liberated into its own library to guard against it being deleted from the Fantom code base and to make much needed updates and adjustments.

Pickle contains native implementations for both Java and Javascript.

Read more...

Install

To install Pickle with Fantom Pod Manager, cut'n'paste the following into a cmd prompt, terminal or shell:

Or to install Pickle with the Fantom Repository Manager (fanr), cut'n'paste the following into a cmd prompt, terminal or shell:

Or to install manually, download the pod file and copy it to the %FAN_HOME%/lib/fan/ directory.

afPickle.pod (98.58 kB)

Use

To use Pickle in a Fantom project, add a dependency to the project's build.fan:

depends = ["sys 1.0", ..., "afPickle 1.0.4 - 1.0"]

Documentation

Information

Meta information on the Pickle pod:

Published by
Steve Eynon
Organisation
Fantom-Factory Ltd
Pod file size
98.58 kB
Licence
ISC
Built on
16th Apr 2023
Source code
via Git at https://github.com/Fantom-Factory/afPickle
Depends on
sys
Referenced by
Javascript Compatible

Dependency Graph

  Use mouse to re-position pods

Release History

There have been 4 releases of Pickle: