AlaskanEmily / mercury-json

Branch of Julien SF's Mercury JSON library made to work with Mercury ROTD 2016-11-11

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mercury-JSON

'mercury_json' is a Mercury library for reading and writing JSON from character streams.

FEATURES

  • conforms to RFC 7159
  • optionally allows comments in JSON
  • optionally allows trailing commas in JSON objects and arrays
  • optionally allows numbers to be -Infinity / Infinity
  • user configurable behaviour for handling repeated object members
  • marshaling and unmarshaling of Mercury data to and from JSON
  • user configurable maximum nesting depth limit

LICENSE

'mercury_json' is licensed under a simple 2-clause BSD style license. See the file COPYING for details.

INSTALLATION

Check the values in the file Make.options to see if they agree with your system, then do:

$ make install

You can also override values in Make.options on the command line, for example

$ make INSTALL_PREFIX=/foo/bar install

causes the library to be installed in the directory /foo/bar.

TESTING

To run the regression test suite, do:

$ make runtests

EXAMPLES

The samples directory contains some example programs that demonstrate different features of the library.

MERCURY 14.01.X COMPATIBILITY

The code on the master branch is not compatible with Mercury 14.01.X. If you require a version of 'mercury_json' that works with Mercury 14.01.X, then checkout the mercury_14_01 branch.

AUTHOR

Julien Fischer juliensf@gmail.com

About

Branch of Julien SF's Mercury JSON library made to work with Mercury ROTD 2016-11-11

License:BSD 2-Clause "Simplified" License


Languages

Language:Mercury 99.3%Language:Makefile 0.7%