brndnmtthws / storm-json

JSON serialisation support for Storm

Home Page:http://code.rapportive.com/storm-json

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

storm-json: JSON Serialisation for Storm

storm-json provides JSON serialisation support for Storm. It currently provides two classes:

Documentation

The Javadocs can be found at http://code.rapportive.com/storm-json.

Usage

To produce a jar:

$ mvn package

To install in your local Maven repository:

$ mvn install

To use in your pom.xml:

<project>
  <!-- ... -->
  <dependencies>
    <!-- ... -->
    <dependency>
      <groupId>com.rapportive</groupId>
      <artifactId>storm-json</artifactId>
      <version>0.0.1</version>
    </dependency>
    <!-- ... -->
  </dependencies>
  <!-- ... -->
</project>

Caveats

SimpleJSONSerializer will only deserialise JSON objects, arrays, or null; it will not accept top-level strings or numbers (although of course strings and numbers inside arrays or objects are fine).

The behaviour on invalid JSON or top-level strings or numbers is currently to throw an exception, which is not very friendly.

About

JSON serialisation support for Storm

http://code.rapportive.com/storm-json

License:MIT License


Languages

Language:Java 100.0%