<commit_before># Sprox - JSON support

[![Build Status](https://travis-ci.org/voostindie/sprox-json.svg?branch=master)](https://travis-ci.org/voostindie/sprox-json)
[![Code Coverage](https://codecov.io/gh/voostindie/sprox-json/branch/master/graph/badge.svg)](https://codecov.io/gh/voostindie/sprox-json)

`sprox-json` provides a limited implementation of the Java `XMLEventReader` interface specifically to allow [Sprox](https://github.com/voostindie/sprox) to process JSON documents.

This is **not** a general purpose JSON to XML adapter! This implementation provides the smallest implementation possible to make Sprox process JSON objects. Many methods throw an `UnsupportedOperationException`. Only what Sprox uses is implemented.

Like Sprox this library can be used in an OSGi environment. The library is actually a proper bundle.

## Alternatives

If you're looking for a (more) powerful JSON to XML adapter, have a look at:

* [StAXON](https://github.com/beckchr/staxon)
* [Jettison](http://jettison.codehaus.org)

I do not guarantee that Sprox works with these libraries however. I haven't tested it.
<commit_msg>Migrate Travis CI from .org to .com.<commit_after># Sprox - JSON support

[![Build Status](https://travis-ci.com/voostindie/sprox-json.svg?branch=master)](https://travis-ci.com/voostindie/sprox-json)
[![Code Coverage](https://codecov.io/gh/voostindie/sprox-json/branch/master/graph/badge.svg)](https://codecov.io/gh/voostindie/sprox-json)

`sprox-json` provides a limited implementation of the Java `XMLEventReader` interface specifically to allow [Sprox](https://github.com/voostindie/sprox) to process JSON documents.

This is **not** a general purpose JSON to XML adapter! This implementation provides the smallest implementation possible to make Sprox process JSON objects. Many methods throw an `UnsupportedOperationException`. Only what Sprox uses is implemented.

Like Sprox this library can be used in an OSGi environment. The library is actually a proper bundle.

## Alternatives

If you're looking for a (more) powerful JSON to XML adapter, have a look at:

* [StAXON](https://github.com/beckchr/staxon)
* [Jettison](http://jettison.codehaus.org)

I do not guarantee that Sprox works with these libraries however. I haven't tested it.

{'fraction_non_alphanumeric': 0.10895456550507278, 'fraction_numerical': 0.0, 'mean_word_length': 5.096774193548387, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, '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': '6140695', 'n_tokens_mistral': 705, 'n_tokens_neox': 696, 'n_words': 228}