use oj for json encoding
Merge pull request #776 from jroes/use-oj

Use oj for json encoding