Remove dead code and duplication.
Merge pull request #1 from GraylinKim/featureJSONencoder

Remove dead code and duplication.