Added json encoder to searpc object
Merge pull request #1 from haiwen/encoder

Added json encoder to searpc object