Jump to content
Compatible Support Forums
Sign in to follow this  
news

[ANNOUNCE] JSON-GLib 0.6.0

Recommended Posts

hi everyone;

 

JSON-GLib 0.6.0 is now available for download at:

 

http://folks.o-hand.com/~ebassi/sources/json-glib-0.6.0.tar.gz

 

MD5 checksum:

 

d4fd6b7975aad7ea6795e045aeff40fb json-glib-0.6.0.tar.gz

 

this is the first stable release of the JSON-GLib library for the

0.6 cycle.

 

JSON-GLib is a library providing serialization and deserialization

support for the JavaScript Object Notation (JSON) format described by

RFC 4627. JSON is:

 

a lightweight data-interchange format. It is easy for humans to read

and write. It is easy for machines to parse and generate. It is based

on a subset of the JavaScript Programming Language, Standard ECMA-262

3rd Edition - December 1999. JSON is a text format that is completely

language independent but uses conventions that are familiar to

programmers of the C-family of languages, including C, C++, C#, Java,

JavaScript, Perl, Python, and many others. These properties make JSON

an ideal data-interchange language. -- From Introducing JSON

 

Many high-level languages already provide native modules for parsing,

generating and manipulating JSON data streams. JSON-GLib is a C library

based on GLib and released under the terms of the GNU Lesser General

Public License version 2.1. It provides a parser and a generator GObject

classes and various wrappers for the complex data types employed by

JSON, such as arrays and objects.

 

JSON-GLib uses GLib native data types and the generic value container

GValue for ease of development. It also provides integration with the

GObject classes for direct serialization into, and deserialization from,

JSON data streams.

 

JSON-GLib currently requires:

 

* GLib 2.16.0, or higher

 

Bugs should be reported to http://bugzilla.openedhand.com in the

json-glib product.

 

JSON-GLib is available in GNOME SVN:

 

http://svn.gnome.org/viewvc/json-glib/trunk/

 

The development is mostly done inside a git repository, available at:

 

http://github.com/ebassi/json-glib/tree/master

 

This is the first developers snapshot leading to the upcoming 0.6.0

release; installing this version will overwrite the files currently

installed by the 0.4 releases.

 

What's new in JSON-GLib 0.6.0

---------------------------

[in the 0.5.0 release, see previous announcement for details]

* Allow deserialization of strings into enum and flag types

* Add the :indent-char property to JsonGenerator

* Add functions to retrieve copies of the nodes inside Object and Array

* Fix leaks and invalid accesses

* Use the right type for the buffer length parameter in JsonParser

* Provide a default implementation for JsonSerializable

* Provide our own JSON tokenizer (using GScanner) for the JSON-only

features that would have been lost by using GScanner

* Add support for parsing Unicode characters escaped using \uXXXX

* Add a fully automated test suite, using the GTest framework

* Allow 'null' nodes to return a value without warnings

 

[since the 0.5.0 release]

* Make the deserialization of G_TYPE_STRV properties more robust

Instead of building up a buffer by concatenating all the strings in

the JsonArray, the deserialization code now builds a GPtrArray and

passes its contents as the property payload. This increases safety

and enhances memory usage.

 

* Export the public symbols only

Every symbol starting with "json" is public; everything else should

be considered private.

 

* Provide GTypes for the enumerations

Enumeration types should have a GType, for eventual bindings.

 

* Avoid a warning when trying to copy an empty JsonNode

 

* Fix gtk-doc cross-references with GLib and GObject documentation

 

ciao,

Emmanuele.

 

--

Emmanuele Bassi, OpenedHand Ltd.

Unit R, Homesdale Business Centre

216-218 Homesdale Rd., Bromley - BR12QZ

http://www.o-hand.com

 

_______________________________________________

 

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×