proper json encoding
Merge pull request #2 from assertivist/master

proper json encoding