Take options for to_json
Merge pull request #22 from rrods/to_jsonfix

Take options for to_json