Merge pull request #1 from keithj/master

Added JSONCodecTest and fixed a bug exposed by the tests
Merge pull request #2 from keithj/master

Added root module to make declaring a dependency more intuitive.