require json for to_json conversion
Merge pull request #1 from hasghari/json

require json