Json 1.0.0
A JSON to Fantom object mapping library (Internal)

Json is a support library that aids Alien-Factory in the development of other libraries, frameworks and applications. Though you are welcome to use it, you may find features are missing and the documentation incomplete.

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:

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

Just annotate fields with @JsonProperty then read / write JSON with readJson(...) and writeJson(...) - 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 (154.62 kB)

Use

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

depends = ["sys 1.0", ..., "afJson 1.0.0 - 1.0"]

Documentation

Information

Meta information on the Json pod:

Published by
Steve Eynon
Organisation
Alien-Factory
Pod file size
154.62 kB
Licence
ISC Licence (ISC)
Built on
23rd Jun 2016
Source code
via Mercurial at https://bitbucket.org/AlienFactory/afjson
Depends on
afBeanUtils, afConcurrent, concurrent, sys
Referenced by
Javascript Compatible

Dependency Graph

  Use mouse to re-position pods

Release History

There have been 3 releases of Json: