<commit_before>gson-jodatime-serialisers
=========================

A set of [GSON](http://code.google.com/p/google-gson/) serialiser/deserialisers for dealing with 
[Joda Time](http://joda-time.sourceforge.net/) entities.  Wherever possible, [ISO 8601 string representations]
(http://en.wikipedia.org/wiki/ISO_8601) are used.<commit_msg>Update README with details of Maven GAV and a code example.<commit_after># gson-jodatime-serialisers

## What is it?

A set of [GSON](http://code.google.com/p/google-gson/) serialiser/deserialisers for dealing with 
[Joda Time](http://joda-time.sourceforge.net/) entities.  Wherever possible, [ISO 8601 string representations]
(http://en.wikipedia.org/wiki/ISO_8601) are used.

## Getting it

````
<dependency>
  <groupId>com.fatboyindustrial.gson-jodatime-serialisers</groupId>
  <artifactId>gson-jodatime-serialisers</artifactId>
  <version>1.0.0</version>
</dependency>
````

## Using it

````
final Gson gson = Converters.registerDateTime(new GsonBuilder()).create();
final DateTime original = new DateTime();

final String json = gson.toJson(original);
final DateTime reconstituted = gson.fromJson(json, DateTime.class);
````
{'fraction_non_alphanumeric': 0.1643835616438356, 'fraction_numerical': 0.016267123287671232, 'mean_word_length': 5.458563535911602, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2689515', 'n_tokens_mistral': 410, 'n_tokens_neox': 374, 'n_words': 83}