Json 2.0.2
A JSON to Fantom object mapping library

Json is a customisable Fantom to Javascript Object Notation (JSON) mapping library.

It goes far beyond the usual JsonInStream and JsonOutStream classes by mapping and instantiating fully fledged Fantom domain objects.

Features:

  • Converts all core Fantom types
  • Converts nested / embedded objects
  • Runs on Javascript platforms
  • Simple to use
  • JSON pretty printing

Just annotate fields with @JsonProperty then call fromJson(...) and toJson(...) - couldn't be easier!

Read more...

Install

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

Or to install Json 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.

afJson.pod (110.88 kB)

Use

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

depends = ["sys 1.0", ..., "afJson 2.0.2 - 2.0"]

Documentation

Information

Meta information on the Json pod:

Published by
Steve Eynon
Organisation
Alien-Factory
Pod file size
110.88 kB
Licence
ISC
Built on
27th Oct 2019
Source code
via Git at https://github.com/SlimerDude/afJson
Depends on
afBeanUtils, afConcurrent, sys
Referenced by
Javascript Compatible

Dependency Graph

  Use mouse to re-position pods

Release History

There have been 5 releases of Json: