bug fix for json encoder
bug fix for json encoder
Merge pull request #9 from alvinyao/master

bug fix for json encoder