only json encode once
Merge pull request #14 from ysangkok/master

only json encode once